Documentation ¶
Overview ¶
Package ztype provides Variable Type Related Operations
Index ¶
- func GetType(s interface{}) string
- func InArray(needle, hystack interface{}) bool
- func IsBool(v interface{}) bool
- func IsByte(v interface{}) bool
- func IsEmpty(value interface{}) bool
- func IsFloat32(v interface{}) bool
- func IsFloat64(v interface{}) bool
- func IsInt(v interface{}) bool
- func IsInt16(v interface{}) bool
- func IsInt32(v interface{}) bool
- func IsInt64(v interface{}) bool
- func IsInt8(v interface{}) bool
- func IsInterface(v interface{}) bool
- func IsString(v interface{}) bool
- func IsStruct(v interface{}) bool
- func IsUint(v interface{}) bool
- func IsUint16(v interface{}) bool
- func IsUint32(v interface{}) bool
- func IsUint64(v interface{}) bool
- func IsUint8(v interface{}) bool
- func MapKeyExists(key interface{}, m map[interface{}]interface{}) bool
- func ReflectPtr(r reflect.Value) reflect.Value
- func Slice(value interface{}) []interface{}
- func ToBool(i interface{}) bool
- func ToByte(i interface{}) []byte
- func ToFloat32(i interface{}) float32
- func ToFloat64(i interface{}) float64
- func ToInt(i interface{}) int
- func ToInt16(i interface{}) int16
- func ToInt32(i interface{}) int32
- func ToInt64(i interface{}) int64
- func ToInt8(i interface{}) int8
- func ToMapString(value interface{}, tags ...string) map[string]interface{}
- func ToMapStringDeep(value interface{}, tags ...string) map[string]interface{}
- func ToSliceMapString(value interface{}, tags ...string) []map[string]interface{}
- func ToString(i interface{}) string
- func ToUint(i interface{}) uint
- func ToUint16(i interface{}) uint16
- func ToUint32(i interface{}) uint32
- func ToUint64(i interface{}) uint64
- func ToUint8(i interface{}) uint8
- type StructEngin
- func (s *StructEngin) AppendFields(arg interface{})
- func (s *StructEngin) AppendResult(arg map[string]interface{})
- func (s *StructEngin) GetFields() []interface{}
- func (s *StructEngin) GetResult() []map[string]interface{}
- func (s *StructEngin) GetStructFields(data interface{}) []interface{}
- func (s *StructEngin) GetTagIgnoreName() string
- func (s *StructEngin) GetTagName() string
- func (s *StructEngin) SetExtraCols(args []string) *StructEngin
- func (s *StructEngin) SetFields(arg []interface{})
- func (s *StructEngin) SetResult(arg []map[string]interface{})
- func (s *StructEngin) SetTagIgnoreName(arg string) *StructEngin
- func (s *StructEngin) SetTagName(arg string) *StructEngin
- func (s *StructEngin) ToMap(data interface{}) []map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapKeyExists ¶
func MapKeyExists(key interface{}, m map[interface{}]interface{}) bool
MapKeyExists Whether the dictionary key exists
func ToMapString ¶ added in v0.0.19
ToMapString ToMapString
func ToMapStringDeep ¶ added in v0.0.19
func ToSliceMapString ¶ added in v0.0.19
ToSliceMapString ToSliceMapString
Types ¶
type StructEngin ¶ added in v0.0.19
type StructEngin struct { Fields []interface{} Result []map[string]interface{} TagName string TagIgnoreName string ExtraCols []string }
func Struct ¶ added in v0.0.19
func Struct() *StructEngin
func (*StructEngin) AppendFields ¶ added in v0.0.19
func (s *StructEngin) AppendFields(arg interface{})
func (*StructEngin) AppendResult ¶ added in v0.0.19
func (s *StructEngin) AppendResult(arg map[string]interface{})
func (*StructEngin) GetFields ¶ added in v0.0.19
func (s *StructEngin) GetFields() []interface{}
func (*StructEngin) GetResult ¶ added in v0.0.19
func (s *StructEngin) GetResult() []map[string]interface{}
func (*StructEngin) GetStructFields ¶ added in v0.0.19
func (s *StructEngin) GetStructFields(data interface{}) []interface{}
func (*StructEngin) GetTagIgnoreName ¶ added in v0.0.19
func (s *StructEngin) GetTagIgnoreName() string
func (*StructEngin) GetTagName ¶ added in v0.0.19
func (s *StructEngin) GetTagName() string
func (*StructEngin) SetExtraCols ¶ added in v0.0.19
func (s *StructEngin) SetExtraCols(args []string) *StructEngin
func (*StructEngin) SetFields ¶ added in v0.0.19
func (s *StructEngin) SetFields(arg []interface{})
func (*StructEngin) SetResult ¶ added in v0.0.19
func (s *StructEngin) SetResult(arg []map[string]interface{})
func (*StructEngin) SetTagIgnoreName ¶ added in v0.0.19
func (s *StructEngin) SetTagIgnoreName(arg string) *StructEngin
func (*StructEngin) SetTagName ¶ added in v0.0.19
func (s *StructEngin) SetTagName(arg string) *StructEngin
func (*StructEngin) ToMap ¶ added in v0.0.19
func (s *StructEngin) ToMap(data interface{}) []map[string]interface{}
Click to show internal directories.
Click to hide internal directories.