Documentation
¶
Index ¶
- Variables
- func AnyToMap(value interface{}, opts ...StructOption) (map[string]any, error)
- func GetBool(tmp interface{}) bool
- func GetFloat64(tmp interface{}) (float64, error)
- func GetInt(tmp interface{}) (int, error)
- func GetInt64(tmp interface{}) (int64, error)
- func GetString(v interface{}) string
- func GetUint64(tmp interface{}) (uint64, error)
- type Decimal
- type NullDecimal
- type SMap
- func (m SMap) Del(key string)
- func (m SMap) Get(name string) string
- func (m SMap) GetWithDefault(name string, def string) string
- func (m SMap) Keys() []string
- func (m *SMap) MapScan(obj interface{}) error
- func (m SMap) MarshalBinary() (data []byte, err error)
- func (m SMap) Read(p []byte) (n int, err error)
- func (m SMap) Scan(obj interface{}) error
- func (m SMap) Set(key, val string)
- func (m SMap) Translate(tpl string) string
- func (m SMap) Value() (driver.Value, error)
- func (m SMap) Values() map[string]string
- type StructOption
- type XMap
- func (m XMap) Get(name string) (interface{}, bool)
- func (m XMap) GetBool(name string) bool
- func (m XMap) GetFloat64(key string) (float64, error)
- func (m XMap) GetInt(key string) (int, error)
- func (m XMap) GetInt64(key string) (int64, error)
- func (m XMap) GetString(name string) string
- func (m XMap) IsEmpty() bool
- func (m XMap) Keys() []string
- func (m XMap) Len() int
- func (m *XMap) MapScan(obj interface{}) error
- func (m XMap) MarshalBinary() (data []byte, err error)
- func (m XMap) Merge(r XMap)
- func (m XMap) SMap() SMap
- func (m XMap) Scan(obj interface{}) error
- func (m XMap) Translate(tpl string) string
- func (m XMap) Value() (driver.Value, error)
- type XMaps
- func (ms *XMaps) Append(i ...XMap) XMaps
- func (ms XMaps) Get(idx int) XMap
- func (ms XMaps) IsEmpty() bool
- func (ms XMaps) Len() int
- func (m *XMaps) MapScan(obj interface{}) error
- func (m XMaps) MarshalBinary() (data []byte, err error)
- func (ms XMaps) Scan(obj interface{}) error
- func (m XMaps) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AvgDecimal = decimal.Avg
View Source
var DecimalZero = decimal.Zero
View Source
var MaxDecimal = decimal.Max
View Source
var MinDecimal = decimal.Min
View Source
var NewDecimal = decimal.New
View Source
var NewDecimalFromBigInt = decimal.NewFromBigInt
View Source
var NewDecimalFromFloat = decimal.NewFromFloat
View Source
var NewDecimalFromFloat32 = decimal.NewFromFloat32
View Source
var NewDecimalFromFloatWithExponent = decimal.NewFromFloatWithExponent
View Source
var NewDecimalFromInt = decimal.NewFromInt
View Source
var NewDecimalFromInt32 = decimal.NewFromInt32
View Source
var NewDecimalFromString = decimal.NewFromString
View Source
var SumDecimal = decimal.Sum
Functions ¶
func AnyToMap ¶ added in v0.1.32
func AnyToMap(value interface{}, opts ...StructOption) (map[string]any, error)
将value 转换为map
func GetFloat64 ¶ added in v0.1.9
Types ¶
type NullDecimal ¶ added in v0.1.20
type NullDecimal = decimal.NullDecimal
type SMap ¶
func (SMap) MarshalBinary ¶
type StructOption ¶ added in v0.1.33
type StructOption func(*structOptions)
func WithMaxDepth ¶ added in v0.1.33
func WithMaxDepth(maxDepth int) StructOption
Click to show internal directories.
Click to hide internal directories.