Documentation ¶
Index ¶
- Variables
- type Decimal
- type NullDecimal
- type Pair
- 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) IsEmpty() bool
- func (m SMap) Keys() []string
- func (m SMap) Len() int
- 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{}) errordeprecated
- func (m SMap) ScanTo(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 SortCompare
- type SortedMap
- func (m *SortedMap[K, V]) Clear()
- func (m *SortedMap[K, V]) Contains(key K) bool
- func (m *SortedMap[K, V]) Each(f func(K, V))
- func (m *SortedMap[K, V]) Get(key K) (V, bool)
- func (m *SortedMap[K, V]) Keys() []K
- func (m *SortedMap[K, V]) Len() int
- func (m SortedMap[K, V]) MarshalBinary() ([]byte, error)
- func (m SortedMap[K, V]) MarshalJSON() ([]byte, error)
- func (m *SortedMap[K, V]) Put(key K, value V)
- func (m *SortedMap[K, V]) PutAll(mapval map[K]V)
- func (m *SortedMap[K, V]) Remove(key K)
- func (m *SortedMap[K, V]) ToMap() map[K]V
- func (m *SortedMap[K, V]) Values() []V
- 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) ScanTo(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{}) errordeprecated
- func (ms XMaps) ScanTo(obj interface{}) error
- func (m XMaps) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetBool]. GetBool = xreflect.GetBool // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetString]. GetString = xreflect.GetString // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetInt]. GetInt = xreflect.GetInt // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetInt64]. GetInt64 = xreflect.GetInt64 // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetUint64]. GetUint64 = xreflect.GetUint64 // Deprecated: As of Go v0.2.0, this function simply calls [xreflect.GetFloat64]. GetFloat64 = xreflect.GetFloat64 )
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 ¶
This section is empty.
Types ¶
type NullDecimal ¶ added in v0.1.20
type NullDecimal = decimal.NullDecimal
type SortCompare ¶ added in v0.2.8
type SortCompare[K comparable] func(a, b K) bool
type SortedMap ¶ added in v0.2.8
type SortedMap[K comparable, V any] struct { // contains filtered or unexported fields }
SortedMap 是一个有序映射
func NewSortedMap ¶ added in v0.2.8
func NewSortedMap[K comparable, V any](less SortCompare[K]) *SortedMap[K, V]
NewSortedMap 创建一个新的有序映射
func (*SortedMap[K, V]) Each ¶ added in v0.2.8
func (m *SortedMap[K, V]) Each(f func(K, V))
Each 遍历映射中的所有键值对
func (SortedMap[K, V]) MarshalBinary ¶ added in v0.2.8
func (SortedMap[K, V]) MarshalJSON ¶ added in v0.2.8
func (*SortedMap[K, V]) Put ¶ added in v0.2.8
func (m *SortedMap[K, V]) Put(key K, value V)
Put 向映射中添加或更新一个键值对
type XMap ¶
type XMap map[string]interface{}
func (XMap) MarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.