Documentation
¶
Index ¶
- func CamelcaseToPascalCase(s string) string
- func ConnectionURLBuilder(n string) (string, error)
- func Decrypt(key, ciphertext string) (string, error)
- func Encrypt(key, plaintext string) (string, error)
- func ErrorHandler(c *fiber.Ctx, err error) error
- func NewValidator() *validator.Validate
- func PascalCaseToCamelcase(s string) string
- func StartServer(a *fiber.App)
- func StartServerWithGracefulShutdown(a *fiber.App)
- func StringToUint(s string) (uint, error)
- func ValidatorErrors(err error) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelcaseToPascalCase ¶ added in v0.1.1
CamelcaseToPascalCase converts a camelCase string to PascalCase.
func ConnectionURLBuilder ¶
ConnectionURLBuilder func for building URL connection.
func ErrorHandler ¶
ErrorHandler is a custom error handler for Fiber.
func NewValidator ¶
NewValidator func for create a new validator for model fields.
validate := utils.NewValidator()
if err := validate.Struct(object); err != nil { }
func PascalCaseToCamelcase ¶ added in v0.0.5
PascalCaseToCamelcase converts a PascalCase string to camelCase.
func StartServerWithGracefulShutdown ¶
StartServerWithGracefulShutdown function for starting server with a graceful shutdown.
func StringToUint ¶ added in v0.0.5
StringToUint function to convert string to uint.
func ValidatorErrors ¶
ValidatorErrors func for show validation errors for each invalid fields.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.