Discover Packages
github.com/ystkg/rest-example
api
package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Sep 10, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Price struct {
ID *uint
DateTime *string `validate:"omitempty,max=100"`
Store string `validate:"required,max=100"`
Product string `validate:"required,max=100"`
Price uint `validate:"required"`
InStock *bool
}
type User struct {
ID *uint
Name string `form:"name" validate:"required,alphanum,max=30"`
Password string `form:"password" validate:"required,printascii,max=50" json:"-"`
}
type UserToken struct {
Token string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.