Documentation ¶
Index ¶
- Variables
- type Builder
- func (b *Builder) AddBool(name string) *Builder
- func (b *Builder) AddField(field string, typ reflect.Type) *Builder
- func (b *Builder) AddFloat64(name string) *Builder
- func (b *Builder) AddInt(name string) *Builder
- func (b *Builder) AddInt64(name string) *Builder
- func (b *Builder) AddString(name string) *Builder
- func (b *Builder) Build() *Struct
- func (b *Builder) DelField(field string) *Builder
- type Instance
- func (i *Instance) Addr() interface{}
- func (in Instance) Field(name string) (reflect.Value, error)
- func (i *Instance) Interface() interface{}
- func (in *Instance) SetBool(name string, value bool)
- func (in *Instance) SetFloat64(name string, value float64)
- func (in *Instance) SetInt(name string, value int)
- func (in *Instance) SetInt64(name string, value int64)
- func (in *Instance) SetInterface(colname string, colType string, val interface{})
- func (in *Instance) SetString(name, value string)
- type Struct
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FieldNoExist error = errors.New("field no exist")
)
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
构造器动态struct
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) AddFloat64 ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
结构体的值
func (*Instance) SetFloat64 ¶
func (*Instance) SetInterface ¶
Click to show internal directories.
Click to hide internal directories.