Documentation ¶
Index ¶
- Variables
- func CLen(n []byte) int
- func CTrim(str string) string
- type Map
- func (m Map) Bool(key string, def ...bool) bool
- func (m Map) Copy() generic.Map
- func (m Map) Delete(key interface{})
- func (m Map) DeleteAll(keys ...interface{})
- func (m Map) Duration(key string, def ...time.Duration) time.Duration
- func (m Map) Float64(key string, def ...float64) float64
- func (m Map) ForEach(itr func(key, value interface{}))
- func (m Map) Get(key interface{}) generic.Value
- func (m Map) GetValue(key string) (generic.Value, bool)
- func (m Map) Int(key string, def ...int) int
- func (m Map) Int64(key string, def ...int64) int64
- func (m Map) IsSet(key interface{}) bool
- func (m Map) Keys() interface{}
- func (m Map) Map() map[string]interface{}
- func (m Map) Scan(value interface{}) error
- func (m Map) Set(key, value interface{})
- func (m Map) String(key string, def ...string) string
- func (m Map) StringPtr(key string, def ...string) *string
- func (m Map) StringSlice(key string) []string
- func (m Map) Sub(key interface{}) generic.Map
- func (m Map) Validate() error
- func (m Map) Value() (driver.Value, error)
- func (m Map) Values() interface{}
- func (m Map) With(keys ...interface{}) generic.Map
- func (m Map) Without(keys ...interface{}) generic.Map
- type StringSlice
- func (s StringSlice) Append(vals ...interface{}) generic.Slice
- func (s StringSlice) Contains(values ...interface{}) bool
- func (s StringSlice) ContainsAny(values ...interface{}) bool
- func (s StringSlice) ContainsAnyPrefix(values ...interface{}) bool
- func (s StringSlice) ContainsPrefix(values ...interface{}) bool
- func (s StringSlice) Empty() bool
- func (s StringSlice) Filter(f func(index int, val interface{}) bool) generic.Slice
- func (s StringSlice) FilterPrefix(prefix string) StringSlice
- func (s StringSlice) ForEach(f func(index int, val interface{}))
- func (s StringSlice) Get(index int) interface{}
- func (s StringSlice) IndexOf(val interface{}) int
- func (s StringSlice) Insert(index int, val interface{}) generic.Slice
- func (s StringSlice) Len() int
- func (s StringSlice) Map(out interface{}, filters ...generic.MapFilter)
- func (s StringSlice) Remove(index int) generic.Slice
- func (s StringSlice) ToMap() generic.Map
- func (s StringSlice) Unique() StringSlice
Constants ¶
This section is empty.
Variables ¶
var ( // PathSeparator is the character used to separate the elements // of the keypath. // // For example, `location.address.city` PathSeparator = "." // SignatureSeparator is the character that is used to // separate the Base64 string from the security signature. SignatureSeparator = "_" )
Functions ¶
Types ¶
type Map ¶
type Map map[string]interface{}
Map is the standard wrapper around a map[string]interface{}
func (Map) ForEach ¶
func (m Map) ForEach(itr func(key, value interface{}))
ForEach iterates over the map
func (Map) StringSlice ¶
StringSlice returns a string value for the param, or the optional default
type StringSlice ¶
type StringSlice []string
StringSlice is helper for the common []string
func (StringSlice) Append ¶
func (s StringSlice) Append(vals ...interface{}) generic.Slice
Append returns a slice with the values appended
func (StringSlice) Contains ¶
func (s StringSlice) Contains(values ...interface{}) bool
Contains returns true of the slice contains all of the values
func (StringSlice) ContainsAny ¶
func (s StringSlice) ContainsAny(values ...interface{}) bool
ContainsAny returns true of the slice contains any of the values
func (StringSlice) ContainsAnyPrefix ¶ added in v0.1.3
func (s StringSlice) ContainsAnyPrefix(values ...interface{}) bool
ContainsAny returns true of the slice contains any of the values
func (StringSlice) ContainsPrefix ¶ added in v0.1.3
func (s StringSlice) ContainsPrefix(values ...interface{}) bool
Contains returns true of the slice contains all of the values
func (StringSlice) Empty ¶ added in v0.1.3
func (s StringSlice) Empty() bool
Empty returns true if the slice is empty
func (StringSlice) Filter ¶
func (s StringSlice) Filter(f func(index int, val interface{}) bool) generic.Slice
Filter filters the slice based on the filter method
func (StringSlice) FilterPrefix ¶ added in v0.1.2
func (s StringSlice) FilterPrefix(prefix string) StringSlice
FilterPrefix returns the expand list filtered on the prefix
func (StringSlice) ForEach ¶
func (s StringSlice) ForEach(f func(index int, val interface{}))
ForEach iterates over the slice
func (StringSlice) Get ¶
func (s StringSlice) Get(index int) interface{}
Get returns the item at the index
func (StringSlice) IndexOf ¶
func (s StringSlice) IndexOf(val interface{}) int
IndexOf returns the index of the value in the slice, or -1 if not found
func (StringSlice) Insert ¶
func (s StringSlice) Insert(index int, val interface{}) generic.Slice
Insert returns a slice with the value appended at the index
func (StringSlice) Map ¶
func (s StringSlice) Map(out interface{}, filters ...generic.MapFilter)
Map converts the slice to a map
func (StringSlice) Remove ¶
func (s StringSlice) Remove(index int) generic.Slice
Remove returns a slice with the value removed at the index
func (StringSlice) ToMap ¶
func (s StringSlice) ToMap() generic.Map
ToMap converts the slice to an index map
func (StringSlice) Unique ¶ added in v0.1.2
func (s StringSlice) Unique() StringSlice
Unique returns a scope withonly unique values