package
Version:
v0.0.0-...-1d7d912
Opens a new window with list of versions in this module.
Published: May 2, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Validate(schema interface{})
Validate -> function to validate request
type CreateUserSchema struct {
Name string `validate:"required"`
Email string `validate:"required,email"`
Password string `validate:"required"`
Age int64
Address string
}
CreateUserSchema -> create user schema validation
Source Files
¶
Click to show internal directories.
Click to hide internal directories.