Documentation
¶
Index ¶
- func ConnectionURLBuilder(n string) (string, error)
- func DownloadFile(downloadURL string) ([]byte, error)
- func ExtractJSONFromZip(zipData []byte, filename string) ([]byte, error)
- func ExtractValidStrings(input string) []string
- func GetenvBool(key string) (bool, error)
- func GetenvInt(key string) (int, error)
- func GetenvStr(key string) (string, error)
- func LoadJSON[T any](jsonData []byte) ([]T, error)
- func NewValidator() *validator.Validate
- func ObtenerHora(format string) string
- func StartServer(a *fiber.App)
- func StartServerWithGracefulShutdown(a *fiber.App)
- func ValidatorErrors(err error) map[string]string
- type CSVValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectionURLBuilder ¶
ConnectionURLBuilder func for building URL connection.
func DownloadFile ¶
func ExtractValidStrings ¶
func GetenvBool ¶
func NewValidator ¶
func NewValidator() *validator.Validate
NewValidator func for create a new validator for model fields.
func ObtenerHora ¶
func StartServerWithGracefulShutdown ¶
func StartServerWithGracefulShutdown(a *fiber.App)
StartServerWithGracefulShutdown function for starting server with a graceful shutdown.
func ValidatorErrors ¶
ValidatorErrors func for show validation errors for each invalid fields.
Types ¶
type CSVValidator ¶
type CSVValidator struct {
RequiredColumns []string
}
establecemos las columnas requeridas
func NewCSVValidator ¶
func NewCSVValidator(columns []string) *CSVValidator
retornamos el validador css con las columnas instanciadas
Click to show internal directories.
Click to hide internal directories.