Discover Packages
github.com/ystkg/rest-example
api
package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Feb 2, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ErrorResponse struct {
Title string `json:"title"`
Detail *string `json:"detail,omitempty"`
InvalidParams []InvalidParam `json:"invalid-params,omitempty"`
}
type InvalidParam struct {
Name string `json:"name"`
Reason string `json:"reason"`
}
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"`
}
type User struct {
ID *uint
Name string `form:"name" validate:"required,alphanum,max=30"`
Password password `form:"password" validate:"required,printascii,min=5,max=50" json:"-"`
}
type UserToken struct {
Token string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.