Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map interface { IsSet(key interface{}) bool Set(key, value interface{}) Get(key interface{}) Value Sub(key interface{}) Map Delete(key interface{}) DeleteAll(keys ...interface{}) Copy() Map With(keys ...interface{}) Map Without(keys ...interface{}) Map Values() interface{} Keys() interface{} Map() map[string]interface{} ForEach(func(key, value interface{})) }
Map provides a map wrapper interface for working easily with unknown map types
func ParseString ¶
ParseString parses a mapping string and returns a params object Example string: foo=bar aparam="value"
type MapFilter ¶
MapFilter returns true and the key and value, or false if the value should be skipped
type Slice ¶
type Slice interface { Append(vals ...interface{}) Slice Insert(index int, val interface{}) Slice IndexOf(val interface{}) int Len() int Get(index int) interface{} Remove(index int) Slice Filter(func(index int, val interface{}) bool) Slice ForEach(func(index int, val interface{})) Map(out interface{}, filters ...MapFilter) ToMap() Map Contains(values ...interface{}) bool ContainsAny(values ...interface{}) bool }
Slice is a generic slice manipulation interface helper
type Value ¶
type Value interface { String() string StringPtr() *string StringSlice() []string Bool() bool Int() int Int64() int64 Uint64() uint64 Float64() float64 Slice() []interface{} Map() Map Duration() time.Duration Time() time.Time Interface() interface{} IsNil() bool IsJSONNumber() bool }
Value defines a simple casting interface
Click to show internal directories.
Click to hide internal directories.