Go to file
2025-06-05 20:28:31 +02:00
app update sslmole=disable 2025-06-05 20:28:31 +02:00
db changes in app and pgx 2025-03-27 06:01:02 +01:00
excel2struct adding excel2struct 2024-10-17 20:59:36 +02:00
mail fix mail for using env vars 2025-04-17 12:23:43 +02:00
pgutils experiments with pgtype numeric 2024-12-16 23:37:34 +01:00
templates updated app.go 2025-02-26 05:09:17 +01:00
utils updated app.go 2025-02-26 05:09:17 +01:00
.env.example updated app.go 2025-02-26 05:09:17 +01:00
.gitignore add esfaker 2024-10-17 21:01:45 +02:00
go.mod add FormatDateSpanish 2025-01-28 15:57:29 +01:00
go.sum add FormatDateSpanish 2025-01-28 15:57:29 +01:00
LICENSE updated app.go 2025-02-26 05:09:17 +01:00
README.md update readme and add license 2024-11-25 12:29:32 +01:00

Gopher Toolbox

It is a library that gathers the boilerplate code used in different projects. It includes the following:

  • Database controller implementations:

  • Utilities for converting pgtype to Go types.

  • Random data generation for unit tests, similar to the Faker in Python.

MaleName() string
FemaleName() string
Name() string
LastName() string
Email(beforeAt string) string
Int(min, max int64) int64
Float(min, max float64) float64
Bool() bool
Chars(min, max int) string
AllChars(min, max int) string
AllCharsOrEmpty(min, max int) string
AllCharsOrNil(min, max int) *string
NumericString(length int) string
Sentence(min, max int) string
  • Conversion of Excel files to structured types. You pass the struct type to the function Convert[T any](bookPath, sheetName string), and it will return the data as dataExcel []T.

  • Constants for HTTP handlers.

  • Miscelaneous utilities

CorrectTimezone(timeStamp time.Time) time.Time 
GetBool(value string) bool
LogAndReturnError(err error, message string) error
GetBoolFromString(s string) bool
Slugify(s string) string