Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2021 Changes in this version + const InvalidParse + const NotFound + const Unknown + func RunMigrations(config MigrationConfig) error + type BusinessError struct + BusinessCode int + HTTPStatusCode int + Message string + Reason error + ValidationErrors map[string]string + func NewBusinessError(businessCode int, httpStatusCode int, message string, reason error) *BusinessError + func (b *BusinessError) Error() string + type DatabaseDriverType string + const PGDriver + type Locale string + const En + const ZhHant + type MigrationConfig struct + DatabaseURL string + Driver DatabaseDriverType + FileDir string + type ValidationTranslator struct + Validate *validator.Validate + func NewValidationTranslator(ginBindingValidator *validator.Validate, defaultLanguage string) (*ValidationTranslator, error) + func (v *ValidationTranslator) Translate(language string, err error) (validator.ValidationErrorsTranslations, error)