Documentation ¶
Index ¶
- Variables
- type ArrayString
- type Binary
- type Bool
- type Composed
- type Double
- type Enum
- func (Enum) ConstValues() []github_com_go_courier_enumeration.Enum
- func (v Enum) Int() int
- func (v Enum) Label() string
- func (v Enum) MarshalText() ([]byte, error)
- func (v *Enum) Scan(src interface{}) error
- func (v Enum) String() string
- func (Enum) TypeName() string
- func (v *Enum) UnmarshalText(data []byte) (err error)
- func (v Enum) Value() (database_sql_driver.Value, error)
- type FakeBool
- type Float
- type Int
- type Interface
- type InvalidComposed
- type Map
- type NamedComposed
- type Node
- type Part
- type PartConflict
- type SliceNamed
- type SliceString
- type String
- type Struct
- type Time
- type TimeAlias
- type Uint
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidEnum = errors.New("invalid Enum type")
Functions ¶
This section is empty.
Types ¶
type ArrayString ¶
type ArrayString [2]string
type Binary ¶
type Binary *multipart.FileHeader
type Enum ¶
type Enum int
func ParseEnumFromString ¶
func (Enum) ConstValues ¶
func (Enum) ConstValues() []github_com_go_courier_enumeration.Enum
func (Enum) MarshalText ¶
func (*Enum) UnmarshalText ¶
type InvalidComposed ¶
type InvalidComposed struct { Part PartConflict }
type NamedComposed ¶
type NamedComposed struct {
Part `json:"part"`
}
type PartConflict ¶
type PartConflict struct {
Name string `json:"name" validate:"@string[0,)"`
}
type SliceNamed ¶
type SliceNamed []String
type SliceString ¶
type SliceString []string
type Struct ¶
type Struct struct { // name Name *string `json:"name" validate:"@string[2,]"` ID **string `json:"id,omitempty" default:"1" validate:"@string/\\d+/"` Enum Enum `json:"enum" validate:"@string{ONE}"` CreatedAt time2.Time `json:"createdAt,omitempty"` Slice []float64 `json:"slice" validate:"@slice<@float64<7,5>>[1,3]"` Map map[string]map[string]struct { ID int `json:"id" validate:"@int[0,10]"` } `json:"map,omitempty" validate:"@map<,@map<,@struct>>[0,3]"` }
Click to show internal directories.
Click to hide internal directories.