Documentation
¶
Index ¶
- func Any(dst interface{}, keys ...string) interface{}
- func Bool(keys ...string) *bool
- func Float32(keys ...string) *float32
- func Float64(keys ...string) *float64
- func Int(keys ...string) *int
- func Int64(keys ...string) *int64
- func Length(keys ...string) *int
- func String(keys ...string) *string
- func Time(keys ...string) *time.Time
- func URL(keys ...string) *url.URL
- func Uint(keys ...string) *uint
- func Uint64(keys ...string) *uint64
- type CustomGenerator
- type Generator
- func (g *Generator) Any(dst interface{}, keys ...string) interface{}
- func (g *Generator) Bool(keys ...string) *bool
- func (g *Generator) Float32(keys ...string) *float32
- func (g *Generator) Float64(keys ...string) *float64
- func (g *Generator) Int(keys ...string) *int
- func (g *Generator) Int64(keys ...string) *int64
- func (g *Generator) Length(keys ...string) *int
- func (g *Generator) RegisterCustomGenerator(name string, gen CustomGenerator)
- func (g *Generator) RegisterTypeGenerator(t interface{}, gen TypeGenerator)
- func (g *Generator) String(keys ...string) *string
- func (g *Generator) Time(keys ...string) *time.Time
- func (g *Generator) URL(keys ...string) *url.URL
- func (g *Generator) Uint(keys ...string) *uint
- func (g *Generator) Uint64(keys ...string) *uint64
- type TypeGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomGenerator ¶
type Generator ¶
type Generator struct {
Reporter func(err error)
CustomGenerators map[string]CustomGenerator
TypeGenerators map[reflect.Type]TypeGenerator
}
func (*Generator) RegisterCustomGenerator ¶
func (g *Generator) RegisterCustomGenerator(name string, gen CustomGenerator)
func (*Generator) RegisterTypeGenerator ¶
func (g *Generator) RegisterTypeGenerator(t interface{}, gen TypeGenerator)
type TypeGenerator ¶
Click to show internal directories.
Click to hide internal directories.