package
Version:
v0.0.0-...-c6ffc77
Opens a new window with list of versions in this module.
Published: May 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Customer struct {
ID primitive.ObjectID `json:"id,omitempty"`
Name string `json:"name" validate:"required"`
Lastname string `json:"lastname" validate:"required"`
Age int32 `json:"age" validate:"required"`
Email string `json:"email" validate:"email"`
Gender string `json:"gender,omitempty"`
}
type Error struct {
Code string `json:"code"`
Message string `json:"message"`
Source string `json:"source"`
}
type Validator struct {
Validator *validator.Validate
}
Validator struct
Validate func is used for validate structs
Source Files
¶
Click to show internal directories.
Click to hide internal directories.