Documentation ¶
Index ¶
- Constants
- Variables
- func AsBool(val interface{}) bool
- func AsBytes(val interface{}) []byte
- func AsCSS(val interface{}) template.CSS
- func AsDateTime(val interface{}, layouts ...string) time.Time
- func AsDuration(val interface{}, defaults ...time.Duration) time.Duration
- func AsFloat32(val interface{}) float32
- func AsFloat64(val interface{}) float64
- func AsHTML(val interface{}) template.HTML
- func AsHTMLAttr(val interface{}) template.HTMLAttr
- func AsInt(val interface{}) int
- func AsInt16(val interface{}) int16
- func AsInt32(val interface{}) int32
- func AsInt64(val interface{}) int64
- func AsInt8(val interface{}) int8
- func AsInterfaces[T any](p []T, converter ...func(s T) any) []any
- func AsJS(val interface{}) template.JS
- func AsStdStringSlice(p interface{}) []string
- func AsString(val interface{}) string
- func AsTimestamp(val interface{}) time.Time
- func AsType(typ string, val interface{}) interface{}
- func AsUint(val interface{}) uint
- func AsUint16(val interface{}) uint16
- func AsUint32(val interface{}) uint32
- func AsUint64(val interface{}) uint64
- func AsUint8(val interface{}) uint8
- func Converts[V Scalar, T Scalar](p []T, converter ...func(s T) V) []V
- func Decr(val interface{}, n int64) int64
- func FilterSlice[T comparable, F func(_ int, v T) bool](p []T, f F) []T
- func GetByIndex(v interface{}, i int, defaults ...interface{}) interface{}
- func Incr(val interface{}, n int64) int64
- func InterfacesTo[T Scalar](p []any, converter ...func(s any) T) []T
- func IsFalseBoolElement(_ int, s bool) bool
- func IsGreaterThanZeroElement[T Number](_ int, v T) bool
- func IsNotEmptyString(s *string) bool
- func IsNotEmptyStringElement(_ int, s string) bool
- func IsTrueBoolElement(_ int, s bool) bool
- func RegisterTransferFunc(name string, fn func(value interface{}, row Store) interface{})
- func Unique[T comparable](p []T) []T
- func UniqueWithFilter[T comparable, F func(_ int, v T) bool](p []T, f F) []T
- type AsMap
- type AsPartialMap
- type Ignorer
- type MapReadonly
- func (s MapReadonly) Bool(key string, defaults ...interface{}) bool
- func (s MapReadonly) CSS(key string, defaults ...interface{}) template.CSS
- func (s MapReadonly) Children(keys ...interface{}) MapReadonly
- func (s MapReadonly) DateTime(key string, layouts ...string) time.Time
- func (s MapReadonly) Duration(key string, defaults ...time.Duration) time.Duration
- func (s MapReadonly) Float32(key string, defaults ...interface{}) float32
- func (s MapReadonly) Float64(key string, defaults ...interface{}) float64
- func (s MapReadonly) Get(key string, defaults ...interface{}) interface{}
- func (s MapReadonly) GetStore(key string, defaults ...interface{}) MapReadonly
- func (s MapReadonly) GetStoreByKeys(keys ...string) MapReadonly
- func (s MapReadonly) HTML(key string, defaults ...interface{}) template.HTML
- func (s MapReadonly) HTMLAttr(key string, defaults ...interface{}) template.HTMLAttr
- func (s MapReadonly) Has(key string) bool
- func (s MapReadonly) Int(key string, defaults ...interface{}) int
- func (s MapReadonly) Int16(key string, defaults ...interface{}) int16
- func (s MapReadonly) Int32(key string, defaults ...interface{}) int32
- func (s MapReadonly) Int64(key string, defaults ...interface{}) int64
- func (s MapReadonly) Int8(key string, defaults ...interface{}) int8
- func (s MapReadonly) JS(key string, defaults ...interface{}) template.JS
- func (s MapReadonly) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (s MapReadonly) Select(selectKeys ...string) MapReadonly
- func (s MapReadonly) Split(key string, sep string, limit ...int) StringSlice
- func (s MapReadonly) String(key string, defaults ...interface{}) string
- func (s MapReadonly) Timestamp(key string, defaults ...interface{}) time.Time
- func (s MapReadonly) Trim(key string, defaults ...interface{}) String
- func (s MapReadonly) Uint(key string, defaults ...interface{}) uint
- func (s MapReadonly) Uint16(key string, defaults ...interface{}) uint16
- func (s MapReadonly) Uint32(key string, defaults ...interface{}) uint32
- func (s MapReadonly) Uint64(key string, defaults ...interface{}) uint64
- func (s MapReadonly) Uint8(key string, defaults ...interface{}) uint8
- type Number
- type SafeMap
- func (s *SafeMap) Bool(key interface{}, defaults ...interface{}) bool
- func (s *SafeMap) CSS(key interface{}, defaults ...interface{}) template.CSS
- func (s *SafeMap) DateTime(key interface{}, layouts ...string) time.Time
- func (s *SafeMap) Decr(key interface{}, n int64, defaults ...interface{}) int64
- func (s *SafeMap) Float32(key interface{}, defaults ...interface{}) float32
- func (s *SafeMap) Float64(key interface{}, defaults ...interface{}) float64
- func (s *SafeMap) Get(key interface{}, defaults ...interface{}) interface{}
- func (s *SafeMap) GetOk(key interface{}) (interface{}, bool)
- func (s *SafeMap) GetOrSet(key, value interface{}) (actual interface{}, loaded bool)
- func (s *SafeMap) GetStore(key interface{}, defaults ...interface{}) Store
- func (s *SafeMap) HTML(key interface{}, defaults ...interface{}) template.HTML
- func (s *SafeMap) HTMLAttr(key interface{}, defaults ...interface{}) template.HTMLAttr
- func (s *SafeMap) Has(key interface{}) bool
- func (s *SafeMap) Incr(key interface{}, n int64, defaults ...interface{}) int64
- func (s *SafeMap) Int(key interface{}, defaults ...interface{}) int
- func (s *SafeMap) Int16(key interface{}, defaults ...interface{}) int16
- func (s *SafeMap) Int32(key interface{}, defaults ...interface{}) int32
- func (s *SafeMap) Int64(key interface{}, defaults ...interface{}) int64
- func (s *SafeMap) Int8(key interface{}, defaults ...interface{}) int8
- func (s *SafeMap) JS(key interface{}, defaults ...interface{}) template.JS
- func (s *SafeMap) Set(key, value interface{})
- func (s *SafeMap) Split(key interface{}, sep string, limit ...int) StringSlice
- func (s *SafeMap) String(key interface{}, defaults ...interface{}) string
- func (s *SafeMap) Timestamp(key interface{}, defaults ...interface{}) time.Time
- func (s *SafeMap) Trim(key interface{}, defaults ...interface{}) String
- func (s *SafeMap) Uint(key interface{}, defaults ...interface{}) uint
- func (s *SafeMap) Uint16(key interface{}, defaults ...interface{}) uint16
- func (s *SafeMap) Uint32(key interface{}, defaults ...interface{}) uint32
- func (s *SafeMap) Uint64(key interface{}, defaults ...interface{}) uint64
- func (s *SafeMap) Uint8(key interface{}, defaults ...interface{}) uint8
- type SafeStore
- func (s *SafeStore) Bool(key string, defaults ...interface{}) bool
- func (s *SafeStore) CSS(key string, defaults ...interface{}) template.CSS
- func (s *SafeStore) Children(keys ...interface{}) Store
- func (s *SafeStore) Clear() *SafeStore
- func (s *SafeStore) Clone() *SafeStore
- func (s *SafeStore) CloneStore() Store
- func (s *SafeStore) DateTime(key string, layouts ...string) time.Time
- func (s *SafeStore) Decr(key string, n int64, defaults ...interface{}) int64
- func (s *SafeStore) DeepMerge(source Store)
- func (c *SafeStore) Delete(keys ...string)
- func (s *SafeStore) Duration(key string, defaults ...time.Duration) time.Duration
- func (s *SafeStore) Float32(key string, defaults ...interface{}) float32
- func (s *SafeStore) Float64(key string, defaults ...interface{}) float64
- func (s *SafeStore) Get(key string, defaults ...interface{}) interface{}
- func (s *SafeStore) GetStore(key string, defaults ...interface{}) Store
- func (s *SafeStore) GetStoreByKeys(keys ...string) Store
- func (s *SafeStore) HTML(key string, defaults ...interface{}) template.HTML
- func (s *SafeStore) HTMLAttr(key string, defaults ...interface{}) template.HTMLAttr
- func (s *SafeStore) Has(key string) bool
- func (s *SafeStore) Incr(key string, n int64, defaults ...interface{}) int64
- func (s *SafeStore) Int(key string, defaults ...interface{}) int
- func (s *SafeStore) Int16(key string, defaults ...interface{}) int16
- func (s *SafeStore) Int32(key string, defaults ...interface{}) int32
- func (s *SafeStore) Int64(key string, defaults ...interface{}) int64
- func (s *SafeStore) Int8(key string, defaults ...interface{}) int8
- func (s *SafeStore) JS(key string, defaults ...interface{}) template.JS
- func (s *SafeStore) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (s *SafeStore) Range(fn func(key string, val interface{}) error) (err error)
- func (s *SafeStore) Select(selectKeys ...string) Store
- func (s *SafeStore) Set(key string, val interface{})
- func (s *SafeStore) SetMKey(key string, value interface{}) *SafeStore
- func (s *SafeStore) SetMKeys(keys []string, value interface{}) *SafeStore
- func (s *SafeStore) Split(key string, sep string, limit ...int) StringSlice
- func (s *SafeStore) Stored() Store
- func (s *SafeStore) String(key string, defaults ...interface{}) string
- func (s *SafeStore) Timestamp(key string, defaults ...interface{}) time.Time
- func (s *SafeStore) Transform(transfers map[string]Transfer) Store
- func (s *SafeStore) Trim(key string, defaults ...interface{}) String
- func (s *SafeStore) Uint(key string, defaults ...interface{}) uint
- func (s *SafeStore) Uint16(key string, defaults ...interface{}) uint16
- func (s *SafeStore) Uint32(key string, defaults ...interface{}) uint32
- func (s *SafeStore) Uint64(key string, defaults ...interface{}) uint64
- func (s *SafeStore) Uint8(key string, defaults ...interface{}) uint8
- type Scalar
- type Store
- func (s Store) Bool(key string, defaults ...interface{}) bool
- func (s Store) CSS(key string, defaults ...interface{}) template.CSS
- func (s Store) Children(keys ...interface{}) Store
- func (s Store) Clone() Store
- func (s Store) DateTime(key string, layouts ...string) time.Time
- func (s Store) Decr(key string, n int64, defaults ...interface{}) int64
- func (s Store) DeepMerge(source Store)
- func (s Store) Delete(keys ...string) Store
- func (s Store) Duration(key string, defaults ...time.Duration) time.Duration
- func (s Store) Float32(key string, defaults ...interface{}) float32
- func (s Store) Float64(key string, defaults ...interface{}) float64
- func (s Store) Get(key string, defaults ...interface{}) interface{}
- func (s Store) GetStore(key string, defaults ...interface{}) Store
- func (s Store) GetStoreByKeys(keys ...string) Store
- func (s Store) HTML(key string, defaults ...interface{}) template.HTML
- func (s Store) HTMLAttr(key string, defaults ...interface{}) template.HTMLAttr
- func (s Store) Has(key string) bool
- func (s Store) Incr(key string, n int64, defaults ...interface{}) int64
- func (s Store) Int(key string, defaults ...interface{}) int
- func (s Store) Int16(key string, defaults ...interface{}) int16
- func (s Store) Int32(key string, defaults ...interface{}) int32
- func (s Store) Int64(key string, defaults ...interface{}) int64
- func (s Store) Int8(key string, defaults ...interface{}) int8
- func (s Store) JS(key string, defaults ...interface{}) template.JS
- func (s Store) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (s Store) Select(selectKeys ...string) Store
- func (s Store) Set(key string, value interface{}) Store
- func (s Store) SetMKey(key string, value interface{}) Store
- func (s Store) SetMKeys(keys []string, value interface{}) Store
- func (s Store) Split(key string, sep string, limit ...int) StringSlice
- func (s Store) String(key string, defaults ...interface{}) string
- func (s Store) Timestamp(key string, defaults ...interface{}) time.Time
- func (s Store) Transform(transfers map[string]Transfer) Store
- func (s Store) Trim(key string, defaults ...interface{}) String
- func (s Store) Uint(key string, defaults ...interface{}) uint
- func (s Store) Uint16(key string, defaults ...interface{}) uint16
- func (s Store) Uint32(key string, defaults ...interface{}) uint32
- func (s Store) Uint64(key string, defaults ...interface{}) uint64
- func (s Store) Uint8(key string, defaults ...interface{}) uint8
- type String
- func (p String) Bool() bool
- func (p String) DateTime(layouts ...string) time.Time
- func (p String) Duration(defaults ...time.Duration) time.Duration
- func (p String) Float32() float32
- func (p String) Float64() float64
- func (p String) Int() int
- func (p String) Int32() int32
- func (p String) Int64() int64
- func (p String) Interface() interface{}
- func (p String) Raw() string
- func (p String) Split(sep string, limit ...int) StringSlice
- func (p String) SplitAny(sep string, limit ...int) StringSlice
- func (p String) String() string
- func (p String) Timestamp() time.Time
- func (p String) Trim() String
- func (p String) Uint() uint
- func (p String) Uint32() uint32
- func (p String) Uint64() uint64
- type StringMap
- func (p StringMap) Bool(key string) bool
- func (p StringMap) DateTime(key string) time.Time
- func (p StringMap) Duration(key string, defaults ...time.Duration) time.Duration
- func (p StringMap) Float32(key string) float32
- func (p StringMap) Float64(key string) float64
- func (p StringMap) Int(key string) int
- func (p StringMap) Int32(key string) int32
- func (p StringMap) Int64(key string) int64
- func (p StringMap) Interface(key string) interface{}
- func (p StringMap) Interfaces() map[string]interface{}
- func (p StringMap) Raw(key string) string
- func (p StringMap) Split(key string, sep string, limit ...int) StringSlice
- func (p StringMap) SplitAny(key string, sep string, limit ...int) StringSlice
- func (p StringMap) String(key string) string
- func (p StringMap) Timestamp(key string) time.Time
- func (p StringMap) Uint(key string) uint
- func (p StringMap) Uint32(key string) uint32
- func (p StringMap) Uint64(key string) uint64
- type StringSlice
- func (p StringSlice) Bool(filters ...func(int, bool) bool) []bool
- func (p StringSlice) Filter(filterFuncs ...func(s *string) bool) StringSlice
- func (p StringSlice) Float32(filters ...func(int, float32) bool) []float32
- func (p StringSlice) Float64(filters ...func(int, float64) bool) []float64
- func (p StringSlice) GetByIndex(i int, defaults ...string) string
- func (p StringSlice) HasValue(v interface{}) bool
- func (p StringSlice) Int(filters ...func(int, int) bool) []int
- func (p StringSlice) Int16(filters ...func(int, int16) bool) []int16
- func (p StringSlice) Int32(filters ...func(int, int32) bool) []int32
- func (p StringSlice) Int64(filters ...func(int, int64) bool) []int64
- func (p StringSlice) Int8(filters ...func(int, int8) bool) []int8
- func (p StringSlice) Interface(filters ...func(int, string) bool) []interface{}
- func (p StringSlice) Join(sep string) string
- func (p StringSlice) Size() int
- func (p StringSlice) Split(sep string, limit ...int) StringSlice
- func (p StringSlice) SplitAny(sep string, limit ...int) StringSlice
- func (p StringSlice) String() []string
- func (p StringSlice) Uint(filters ...func(int, uint) bool) []uint
- func (p StringSlice) Uint16(filters ...func(int, uint16) bool) []uint16
- func (p StringSlice) Uint32(filters ...func(int, uint32) bool) []uint32
- func (p StringSlice) Uint64(filters ...func(int, uint64) bool) []uint64
- func (p StringSlice) Uint8(filters ...func(int, uint8) bool) []uint8
- func (p StringSlice) Unique() StringSlice
- type Stringer
- type StringerFunc
- type StringerIgnore
- type StringerList
- type StringerMap
- func (s StringerMap) Add(key string, value Stringer) StringerMap
- func (s StringerMap) AddFunc(key string, value func(interface{}) string) StringerMap
- func (s StringerMap) Delete(keys ...string) StringerMap
- func (s StringerMap) Get(key string, defaults ...Stringer) Stringer
- func (s StringerMap) Has(key string) bool
- func (s StringerMap) Set(key string, value Stringer) StringerMap
- func (s StringerMap) SetFunc(key string, value func(interface{}) string) StringerMap
- func (s StringerMap) String(key string, value interface{}) (result string, found bool, ignore bool)
- type Transfer
- type Transfers
- func (t *Transfers) Add(name string, transfer Transfer) *Transfers
- func (t *Transfers) AddFunc(oldField string, fn func(value interface{}, row Store) interface{}, ...) *Transfers
- func (t *Transfers) AsMap() Transfers
- func (t *Transfers) Delete(names ...string) *Transfers
- func (t *Transfers) Transform(row Store) Store
- type Transform
- func (t *Transform) Destination() string
- func (t *Transform) Set(key string, fn func(value interface{}, row Store) interface{}) *Transform
- func (t *Transform) SetFunc(fn func(value interface{}, row Store) interface{}) *Transform
- func (t *Transform) SetKey(key string) *Transform
- func (t *Transform) Transform(value interface{}, row Store) interface{}
Constants ¶
View Source
const ( EmptyHTML = template.HTML(``) EmptyJS = template.JS(``) EmptyCSS = template.CSS(``) EmptyHTMLAttr = template.HTMLAttr(``) DateTimeNormal = `2006-01-02 15:04:05` DateTimeShort = `2006-01-02 15:04` DateNormal = `2006-01-02` TimeNormal = `15:04:05` DateMd = `01-02` DateShort = `06-01-02` TimeShort = `15:04` )
Variables ¶
View Source
var DefaultTransferFuncs = map[string]func(value interface{}, row Store) interface{}{}
View Source
var EmptyTime = time.Time{}
View Source
var Ignored = &StringerIgnore{}
Functions ¶
func AsDateTime ¶ added in v1.4.3
func AsDuration ¶ added in v1.6.0
func AsHTMLAttr ¶ added in v1.4.3
func AsInterfaces ¶ added in v1.6.0
func AsStdStringSlice ¶ added in v1.6.0
func AsStdStringSlice(p interface{}) []string
AsStdStringSlice p must be slice
func AsTimestamp ¶ added in v1.4.3
func FilterSlice ¶ added in v1.6.5
func FilterSlice[T comparable, F func(_ int, v T) bool](p []T, f F) []T
func GetByIndex ¶ added in v1.6.0
func GetByIndex(v interface{}, i int, defaults ...interface{}) interface{}
func InterfacesTo ¶ added in v1.6.0
func IsFalseBoolElement ¶ added in v1.6.0
func IsGreaterThanZeroElement ¶ added in v1.6.0
func IsNotEmptyString ¶ added in v1.6.0
func IsNotEmptyStringElement ¶ added in v1.6.0
func IsTrueBoolElement ¶ added in v1.6.0
func RegisterTransferFunc ¶ added in v1.6.0
func Unique ¶ added in v1.6.0
func Unique[T comparable](p []T) []T
func UniqueWithFilter ¶ added in v1.6.5
func UniqueWithFilter[T comparable, F func(_ int, v T) bool](p []T, f F) []T
Types ¶
type AsPartialMap ¶ added in v1.6.0
type MapReadonly ¶ added in v1.6.0
type MapReadonly map[string]interface{}
func (MapReadonly) Bool ¶ added in v1.6.0
func (s MapReadonly) Bool(key string, defaults ...interface{}) bool
func (MapReadonly) CSS ¶ added in v1.6.0
func (s MapReadonly) CSS(key string, defaults ...interface{}) template.CSS
func (MapReadonly) Children ¶ added in v1.6.0
func (s MapReadonly) Children(keys ...interface{}) MapReadonly
func (MapReadonly) DateTime ¶ added in v1.6.0
func (s MapReadonly) DateTime(key string, layouts ...string) time.Time
func (MapReadonly) Float32 ¶ added in v1.6.0
func (s MapReadonly) Float32(key string, defaults ...interface{}) float32
func (MapReadonly) Float64 ¶ added in v1.6.0
func (s MapReadonly) Float64(key string, defaults ...interface{}) float64
func (MapReadonly) Get ¶ added in v1.6.0
func (s MapReadonly) Get(key string, defaults ...interface{}) interface{}
func (MapReadonly) GetStore ¶ added in v1.6.0
func (s MapReadonly) GetStore(key string, defaults ...interface{}) MapReadonly
func (MapReadonly) GetStoreByKeys ¶ added in v1.6.0
func (s MapReadonly) GetStoreByKeys(keys ...string) MapReadonly
func (MapReadonly) HTML ¶ added in v1.6.0
func (s MapReadonly) HTML(key string, defaults ...interface{}) template.HTML
func (MapReadonly) HTMLAttr ¶ added in v1.6.0
func (s MapReadonly) HTMLAttr(key string, defaults ...interface{}) template.HTMLAttr
func (MapReadonly) Has ¶ added in v1.6.0
func (s MapReadonly) Has(key string) bool
func (MapReadonly) Int ¶ added in v1.6.0
func (s MapReadonly) Int(key string, defaults ...interface{}) int
func (MapReadonly) Int16 ¶ added in v1.6.0
func (s MapReadonly) Int16(key string, defaults ...interface{}) int16
func (MapReadonly) Int32 ¶ added in v1.6.0
func (s MapReadonly) Int32(key string, defaults ...interface{}) int32
func (MapReadonly) Int64 ¶ added in v1.6.0
func (s MapReadonly) Int64(key string, defaults ...interface{}) int64
func (MapReadonly) Int8 ¶ added in v1.6.0
func (s MapReadonly) Int8(key string, defaults ...interface{}) int8
func (MapReadonly) JS ¶ added in v1.6.0
func (s MapReadonly) JS(key string, defaults ...interface{}) template.JS
func (MapReadonly) MarshalXML ¶ added in v1.6.0
func (s MapReadonly) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML allows type MapReadonly to be used with xml.Marshal
func (MapReadonly) Select ¶ added in v1.6.0
func (s MapReadonly) Select(selectKeys ...string) MapReadonly
func (MapReadonly) Split ¶ added in v1.6.0
func (s MapReadonly) Split(key string, sep string, limit ...int) StringSlice
func (MapReadonly) String ¶ added in v1.6.0
func (s MapReadonly) String(key string, defaults ...interface{}) string
func (MapReadonly) Timestamp ¶ added in v1.6.0
func (s MapReadonly) Timestamp(key string, defaults ...interface{}) time.Time
func (MapReadonly) Trim ¶ added in v1.6.0
func (s MapReadonly) Trim(key string, defaults ...interface{}) String
func (MapReadonly) Uint ¶ added in v1.6.0
func (s MapReadonly) Uint(key string, defaults ...interface{}) uint
func (MapReadonly) Uint16 ¶ added in v1.6.0
func (s MapReadonly) Uint16(key string, defaults ...interface{}) uint16
func (MapReadonly) Uint32 ¶ added in v1.6.0
func (s MapReadonly) Uint32(key string, defaults ...interface{}) uint32
func (MapReadonly) Uint64 ¶ added in v1.6.0
func (s MapReadonly) Uint64(key string, defaults ...interface{}) uint64
func (MapReadonly) Uint8 ¶ added in v1.6.0
func (s MapReadonly) Uint8(key string, defaults ...interface{}) uint8
type SafeMap ¶ added in v1.5.0
func (*SafeMap) Get ¶ added in v1.5.0
func (s *SafeMap) Get(key interface{}, defaults ...interface{}) interface{}
func (*SafeMap) Split ¶ added in v1.5.0
func (s *SafeMap) Split(key interface{}, sep string, limit ...int) StringSlice
type SafeStore ¶ added in v1.6.0
type SafeStore struct {
// contains filtered or unexported fields
}
func NewSafeStore ¶ added in v1.6.0
func (*SafeStore) CloneStore ¶ added in v1.6.0
func (*SafeStore) GetStoreByKeys ¶ added in v1.6.0
func (*SafeStore) MarshalXML ¶ added in v1.6.0
MarshalXML allows type Store to be used with xml.Marshal
func (*SafeStore) Split ¶ added in v1.6.0
func (s *SafeStore) Split(key string, sep string, limit ...int) StringSlice
type Store ¶ added in v1.5.0
type Store map[string]interface{}
func StoreStart ¶ added in v1.6.0
func StoreStart() Store
func (Store) GetStoreByKeys ¶ added in v1.6.0
func (Store) MarshalXML ¶ added in v1.5.0
MarshalXML allows type Store to be used with xml.Marshal
func (Store) Split ¶ added in v1.5.0
func (s Store) Split(key string, sep string, limit ...int) StringSlice
type String ¶
type String string
type StringMap ¶ added in v1.3.5
func ToStringMap ¶ added in v1.4.0
func (StringMap) Interfaces ¶ added in v1.4.0
func (StringMap) Split ¶ added in v1.4.0
func (p StringMap) Split(key string, sep string, limit ...int) StringSlice
type StringSlice ¶ added in v1.3.0
type StringSlice []string
func Split ¶ added in v1.4.3
func Split(val interface{}, sep string, limit ...int) StringSlice
func (StringSlice) Bool ¶ added in v1.3.0
func (p StringSlice) Bool(filters ...func(int, bool) bool) []bool
func (StringSlice) Filter ¶ added in v1.6.0
func (p StringSlice) Filter(filterFuncs ...func(s *string) bool) StringSlice
func (StringSlice) Float32 ¶ added in v1.3.0
func (p StringSlice) Float32(filters ...func(int, float32) bool) []float32
func (StringSlice) Float64 ¶ added in v1.3.0
func (p StringSlice) Float64(filters ...func(int, float64) bool) []float64
func (StringSlice) GetByIndex ¶ added in v1.6.0
func (p StringSlice) GetByIndex(i int, defaults ...string) string
func (StringSlice) HasValue ¶ added in v1.5.0
func (p StringSlice) HasValue(v interface{}) bool
func (StringSlice) Int ¶ added in v1.3.0
func (p StringSlice) Int(filters ...func(int, int) bool) []int
func (StringSlice) Int16 ¶ added in v1.6.0
func (p StringSlice) Int16(filters ...func(int, int16) bool) []int16
func (StringSlice) Int32 ¶ added in v1.3.0
func (p StringSlice) Int32(filters ...func(int, int32) bool) []int32
func (StringSlice) Int64 ¶ added in v1.3.0
func (p StringSlice) Int64(filters ...func(int, int64) bool) []int64
func (StringSlice) Int8 ¶ added in v1.6.0
func (p StringSlice) Int8(filters ...func(int, int8) bool) []int8
func (StringSlice) Interface ¶ added in v1.4.0
func (p StringSlice) Interface(filters ...func(int, string) bool) []interface{}
func (StringSlice) Join ¶ added in v1.4.2
func (p StringSlice) Join(sep string) string
func (StringSlice) Size ¶ added in v1.6.0
func (p StringSlice) Size() int
func (StringSlice) Split ¶ added in v1.6.0
func (p StringSlice) Split(sep string, limit ...int) StringSlice
func (StringSlice) SplitAny ¶ added in v1.6.0
func (p StringSlice) SplitAny(sep string, limit ...int) StringSlice
func (StringSlice) String ¶ added in v1.3.0
func (p StringSlice) String() []string
func (StringSlice) Uint ¶ added in v1.3.0
func (p StringSlice) Uint(filters ...func(int, uint) bool) []uint
func (StringSlice) Uint16 ¶ added in v1.6.0
func (p StringSlice) Uint16(filters ...func(int, uint16) bool) []uint16
func (StringSlice) Uint32 ¶ added in v1.3.0
func (p StringSlice) Uint32(filters ...func(int, uint32) bool) []uint32
func (StringSlice) Uint64 ¶ added in v1.3.0
func (p StringSlice) Uint64(filters ...func(int, uint64) bool) []uint64
func (StringSlice) Uint8 ¶ added in v1.6.0
func (p StringSlice) Uint8(filters ...func(int, uint8) bool) []uint8
func (StringSlice) Unique ¶ added in v1.6.0
func (p StringSlice) Unique() StringSlice
type Stringer ¶ added in v1.6.0
type Stringer interface {
String(v interface{}) string
}
func DateTimeStringer ¶ added in v1.6.0
func TimestampStringer ¶ added in v1.6.0
func WhitespaceStringer ¶ added in v1.6.0
func WhitespaceStringer() Stringer
type StringerFunc ¶ added in v1.6.0
type StringerFunc func(interface{}) string
func (StringerFunc) String ¶ added in v1.6.0
func (f StringerFunc) String(v interface{}) string
type StringerIgnore ¶ added in v1.6.0
type StringerIgnore struct{}
func (*StringerIgnore) Ignore ¶ added in v1.6.0
func (s *StringerIgnore) Ignore() bool
func (*StringerIgnore) String ¶ added in v1.6.0
func (s *StringerIgnore) String(_ interface{}) string
type StringerList ¶ added in v1.6.0
type StringerList []Stringer
func (StringerList) Ignore ¶ added in v1.6.0
func (s StringerList) Ignore() bool
func (StringerList) Size ¶ added in v1.6.0
func (s StringerList) Size() int
func (StringerList) String ¶ added in v1.6.0
func (s StringerList) String(v interface{}) string
type StringerMap ¶ added in v1.6.0
func StringerMapStart ¶ added in v1.6.0
func StringerMapStart() StringerMap
func (StringerMap) Add ¶ added in v1.6.0
func (s StringerMap) Add(key string, value Stringer) StringerMap
func (StringerMap) AddFunc ¶ added in v1.6.0
func (s StringerMap) AddFunc(key string, value func(interface{}) string) StringerMap
func (StringerMap) Delete ¶ added in v1.6.0
func (s StringerMap) Delete(keys ...string) StringerMap
func (StringerMap) Get ¶ added in v1.6.0
func (s StringerMap) Get(key string, defaults ...Stringer) Stringer
func (StringerMap) Has ¶ added in v1.6.0
func (s StringerMap) Has(key string) bool
func (StringerMap) Set ¶ added in v1.6.0
func (s StringerMap) Set(key string, value Stringer) StringerMap
func (StringerMap) SetFunc ¶ added in v1.6.0
func (s StringerMap) SetFunc(key string, value func(interface{}) string) StringerMap
type Transfers ¶ added in v1.6.0
Transfers {oldField:Transfer}
func NewTransfers ¶ added in v1.6.0
func NewTransfers() *Transfers
func TransformCamelCase ¶ added in v1.6.0
func TransformCase ¶ added in v1.6.0
func TransformLowerCaseFirst ¶ added in v1.6.0
func TransformSnakeCase ¶ added in v1.6.0
type Transform ¶ added in v1.6.0
type Transform struct { Key string // new field Func func(value interface{}, row Store) interface{} `json:"-" xml:"-"` }
func NewTransform ¶ added in v1.6.0
func NewTransform() *Transform
func (*Transform) Destination ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.