Documentation ¶
Overview ¶
Objx - Go package for dealing with maps, slices, JSON and other data.
Overview ¶
Objx provides the `objx.Map` type, which is a `map[string]interface{}` that exposes a powerful `Get` method (among others) that allows you to easily and quickly get access to data within the map, without having to worry too much about type assertions, missing data, default values etc.
Pattern ¶
Objx uses a preditable pattern to make access data from within `map[string]interface{}` easy. Call one of the `objx.` functions to create your `objx.Map` to get going:
m, err := objx.FromJSON(json)
NOTE: Any methods or functions with the `Must` prefix will panic if something goes wrong, the rest will be optimistic and try to figure things out without panicking.
Use `Get` to access the value you're interested in. You can use dot and array notation too:
m.Get("places[0].latlng")
Once you have sought the `Value` you're interested in, you can use the `Is*` methods to determine its type.
if m.Get("code").IsStr() { // Your code... }
Or you can just assume the type, and use one of the strong type methods to extract the real value:
m.Get("code").Int()
If there's no value there (or if it's the wrong type) then a default value will be returned, or you can be explicit about the default value.
Get("code").Int(-1)
If you're dealing with a slice of data as a value, Objx provides many useful methods for iterating, manipulating and selecting that data. You can find out more by exploring the index below.
Reading data ¶
A simple example of how to use Objx:
// Use MustFromJSON to make an objx.Map from some JSON m := objx.MustFromJSON(`{"name": "Mat", "age": 30}`) // Get the details name := m.Get("name").Str() age := m.Get("age").Int() // Get their nickname (or use their name if they don't have one) nickname := m.Get("nickname").Str(name)
Ranging ¶
Since `objx.Map` is a `map[string]interface{}` you can treat it as such. For example, to `range` the data, do what you would expect:
m := objx.MustFromJSON(json) for key, value := range m { // Your code... }
Index ¶
- Constants
- Variables
- func HashWithKey(data, key string) string
- func SetURLValuesSliceKeySuffix(s string) error
- type MSIConvertable
- type Map
- func FromBase64(base64String string) (Map, error)
- func FromJSON(jsonString string) (Map, error)
- func FromJSONSlice(jsonString string) ([]Map, error)
- func FromSignedBase64(base64String, key string) (Map, error)
- func FromURLQuery(query string) (Map, error)
- func MSI(keyAndValuePairs ...interface{}) Map
- func MustFromBase64(base64String string) Map
- func MustFromJSON(jsonString string) Map
- func MustFromJSONSlice(jsonString string) []Map
- func MustFromSignedBase64(base64String, key string) Map
- func MustFromURLQuery(query string) Map
- func New(data interface{}) Map
- func (m Map) Base64() (string, error)
- func (m Map) Copy() Map
- func (m Map) Exclude(exclude []string) Map
- func (m Map) Get(selector string) *Value
- func (m Map) Has(selector string) bool
- func (m Map) JSON() (string, error)
- func (m Map) Merge(merge Map) Map
- func (m Map) MergeHere(merge Map) Map
- func (m Map) MustBase64() string
- func (m Map) MustJSON() string
- func (m Map) MustSignedBase64(key string) string
- func (m Map) Set(selector string, value interface{}) Map
- func (m Map) SignedBase64(key string) (string, error)
- func (m Map) Transform(transformer func(key string, value interface{}) (string, interface{})) Map
- func (m Map) TransformKeys(mapping map[string]string) Map
- func (m Map) URLQuery() (string, error)
- func (m Map) URLValues() url.Values
- func (m Map) Value() *Value
- type Value
- func (v *Value) Bool(optionalDefault ...bool) bool
- func (v *Value) BoolSlice(optionalDefault ...[]bool) []bool
- func (v *Value) CollectBool(collector func(int, bool) interface{}) *Value
- func (v *Value) CollectComplex128(collector func(int, complex128) interface{}) *Value
- func (v *Value) CollectComplex64(collector func(int, complex64) interface{}) *Value
- func (v *Value) CollectFloat32(collector func(int, float32) interface{}) *Value
- func (v *Value) CollectFloat64(collector func(int, float64) interface{}) *Value
- func (v *Value) CollectInt(collector func(int, int) interface{}) *Value
- func (v *Value) CollectInt16(collector func(int, int16) interface{}) *Value
- func (v *Value) CollectInt32(collector func(int, int32) interface{}) *Value
- func (v *Value) CollectInt64(collector func(int, int64) interface{}) *Value
- func (v *Value) CollectInt8(collector func(int, int8) interface{}) *Value
- func (v *Value) CollectInter(collector func(int, interface{}) interface{}) *Value
- func (v *Value) CollectMSI(collector func(int, map[string]interface{}) interface{}) *Value
- func (v *Value) CollectObjxMap(collector func(int, Map) interface{}) *Value
- func (v *Value) CollectStr(collector func(int, string) interface{}) *Value
- func (v *Value) CollectUint(collector func(int, uint) interface{}) *Value
- func (v *Value) CollectUint16(collector func(int, uint16) interface{}) *Value
- func (v *Value) CollectUint32(collector func(int, uint32) interface{}) *Value
- func (v *Value) CollectUint64(collector func(int, uint64) interface{}) *Value
- func (v *Value) CollectUint8(collector func(int, uint8) interface{}) *Value
- func (v *Value) CollectUintptr(collector func(int, uintptr) interface{}) *Value
- func (v *Value) Complex128(optionalDefault ...complex128) complex128
- func (v *Value) Complex128Slice(optionalDefault ...[]complex128) []complex128
- func (v *Value) Complex64(optionalDefault ...complex64) complex64
- func (v *Value) Complex64Slice(optionalDefault ...[]complex64) []complex64
- func (v *Value) Data() interface{}
- func (v *Value) EachBool(callback func(int, bool) bool) *Value
- func (v *Value) EachComplex128(callback func(int, complex128) bool) *Value
- func (v *Value) EachComplex64(callback func(int, complex64) bool) *Value
- func (v *Value) EachFloat32(callback func(int, float32) bool) *Value
- func (v *Value) EachFloat64(callback func(int, float64) bool) *Value
- func (v *Value) EachInt(callback func(int, int) bool) *Value
- func (v *Value) EachInt16(callback func(int, int16) bool) *Value
- func (v *Value) EachInt32(callback func(int, int32) bool) *Value
- func (v *Value) EachInt64(callback func(int, int64) bool) *Value
- func (v *Value) EachInt8(callback func(int, int8) bool) *Value
- func (v *Value) EachInter(callback func(int, interface{}) bool) *Value
- func (v *Value) EachMSI(callback func(int, map[string]interface{}) bool) *Value
- func (v *Value) EachObjxMap(callback func(int, Map) bool) *Value
- func (v *Value) EachStr(callback func(int, string) bool) *Value
- func (v *Value) EachUint(callback func(int, uint) bool) *Value
- func (v *Value) EachUint16(callback func(int, uint16) bool) *Value
- func (v *Value) EachUint32(callback func(int, uint32) bool) *Value
- func (v *Value) EachUint64(callback func(int, uint64) bool) *Value
- func (v *Value) EachUint8(callback func(int, uint8) bool) *Value
- func (v *Value) EachUintptr(callback func(int, uintptr) bool) *Value
- func (v *Value) Float32(optionalDefault ...float32) float32
- func (v *Value) Float32Slice(optionalDefault ...[]float32) []float32
- func (v *Value) Float64(optionalDefault ...float64) float64
- func (v *Value) Float64Slice(optionalDefault ...[]float64) []float64
- func (v *Value) GroupBool(grouper func(int, bool) string) *Value
- func (v *Value) GroupComplex128(grouper func(int, complex128) string) *Value
- func (v *Value) GroupComplex64(grouper func(int, complex64) string) *Value
- func (v *Value) GroupFloat32(grouper func(int, float32) string) *Value
- func (v *Value) GroupFloat64(grouper func(int, float64) string) *Value
- func (v *Value) GroupInt(grouper func(int, int) string) *Value
- func (v *Value) GroupInt16(grouper func(int, int16) string) *Value
- func (v *Value) GroupInt32(grouper func(int, int32) string) *Value
- func (v *Value) GroupInt64(grouper func(int, int64) string) *Value
- func (v *Value) GroupInt8(grouper func(int, int8) string) *Value
- func (v *Value) GroupInter(grouper func(int, interface{}) string) *Value
- func (v *Value) GroupMSI(grouper func(int, map[string]interface{}) string) *Value
- func (v *Value) GroupObjxMap(grouper func(int, Map) string) *Value
- func (v *Value) GroupStr(grouper func(int, string) string) *Value
- func (v *Value) GroupUint(grouper func(int, uint) string) *Value
- func (v *Value) GroupUint16(grouper func(int, uint16) string) *Value
- func (v *Value) GroupUint32(grouper func(int, uint32) string) *Value
- func (v *Value) GroupUint64(grouper func(int, uint64) string) *Value
- func (v *Value) GroupUint8(grouper func(int, uint8) string) *Value
- func (v *Value) GroupUintptr(grouper func(int, uintptr) string) *Value
- func (v *Value) Int(optionalDefault ...int) int
- func (v *Value) Int16(optionalDefault ...int16) int16
- func (v *Value) Int16Slice(optionalDefault ...[]int16) []int16
- func (v *Value) Int32(optionalDefault ...int32) int32
- func (v *Value) Int32Slice(optionalDefault ...[]int32) []int32
- func (v *Value) Int64(optionalDefault ...int64) int64
- func (v *Value) Int64Slice(optionalDefault ...[]int64) []int64
- func (v *Value) Int8(optionalDefault ...int8) int8
- func (v *Value) Int8Slice(optionalDefault ...[]int8) []int8
- func (v *Value) IntSlice(optionalDefault ...[]int) []int
- func (v *Value) Inter(optionalDefault ...interface{}) interface{}
- func (v *Value) InterSlice(optionalDefault ...[]interface{}) []interface{}
- func (v *Value) IsBool() bool
- func (v *Value) IsBoolSlice() bool
- func (v *Value) IsComplex128() bool
- func (v *Value) IsComplex128Slice() bool
- func (v *Value) IsComplex64() bool
- func (v *Value) IsComplex64Slice() bool
- func (v *Value) IsFloat32() bool
- func (v *Value) IsFloat32Slice() bool
- func (v *Value) IsFloat64() bool
- func (v *Value) IsFloat64Slice() bool
- func (v *Value) IsInt() bool
- func (v *Value) IsInt16() bool
- func (v *Value) IsInt16Slice() bool
- func (v *Value) IsInt32() bool
- func (v *Value) IsInt32Slice() bool
- func (v *Value) IsInt64() bool
- func (v *Value) IsInt64Slice() bool
- func (v *Value) IsInt8() bool
- func (v *Value) IsInt8Slice() bool
- func (v *Value) IsIntSlice() bool
- func (v *Value) IsInter() bool
- func (v *Value) IsInterSlice() bool
- func (v *Value) IsMSI() bool
- func (v *Value) IsMSISlice() bool
- func (v *Value) IsNil() bool
- func (v *Value) IsObjxMap() bool
- func (v *Value) IsObjxMapSlice() bool
- func (v *Value) IsStr() bool
- func (v *Value) IsStrSlice() bool
- func (v *Value) IsUint() bool
- func (v *Value) IsUint16() bool
- func (v *Value) IsUint16Slice() bool
- func (v *Value) IsUint32() bool
- func (v *Value) IsUint32Slice() bool
- func (v *Value) IsUint64() bool
- func (v *Value) IsUint64Slice() bool
- func (v *Value) IsUint8() bool
- func (v *Value) IsUint8Slice() bool
- func (v *Value) IsUintSlice() bool
- func (v *Value) IsUintptr() bool
- func (v *Value) IsUintptrSlice() bool
- func (v *Value) MSI(optionalDefault ...map[string]interface{}) map[string]interface{}
- func (v *Value) MSISlice(optionalDefault ...[]map[string]interface{}) []map[string]interface{}
- func (v *Value) MustBool() bool
- func (v *Value) MustBoolSlice() []bool
- func (v *Value) MustComplex128() complex128
- func (v *Value) MustComplex128Slice() []complex128
- func (v *Value) MustComplex64() complex64
- func (v *Value) MustComplex64Slice() []complex64
- func (v *Value) MustFloat32() float32
- func (v *Value) MustFloat32Slice() []float32
- func (v *Value) MustFloat64() float64
- func (v *Value) MustFloat64Slice() []float64
- func (v *Value) MustInt() int
- func (v *Value) MustInt16() int16
- func (v *Value) MustInt16Slice() []int16
- func (v *Value) MustInt32() int32
- func (v *Value) MustInt32Slice() []int32
- func (v *Value) MustInt64() int64
- func (v *Value) MustInt64Slice() []int64
- func (v *Value) MustInt8() int8
- func (v *Value) MustInt8Slice() []int8
- func (v *Value) MustIntSlice() []int
- func (v *Value) MustInter() interface{}
- func (v *Value) MustInterSlice() []interface{}
- func (v *Value) MustMSI() map[string]interface{}
- func (v *Value) MustMSISlice() []map[string]interface{}
- func (v *Value) MustObjxMap() Map
- func (v *Value) MustObjxMapSlice() [](Map)
- func (v *Value) MustStr() string
- func (v *Value) MustStrSlice() []string
- func (v *Value) MustUint() uint
- func (v *Value) MustUint16() uint16
- func (v *Value) MustUint16Slice() []uint16
- func (v *Value) MustUint32() uint32
- func (v *Value) MustUint32Slice() []uint32
- func (v *Value) MustUint64() uint64
- func (v *Value) MustUint64Slice() []uint64
- func (v *Value) MustUint8() uint8
- func (v *Value) MustUint8Slice() []uint8
- func (v *Value) MustUintSlice() []uint
- func (v *Value) MustUintptr() uintptr
- func (v *Value) MustUintptrSlice() []uintptr
- func (v *Value) ObjxMap(optionalDefault ...(Map)) Map
- func (v *Value) ObjxMapSlice(optionalDefault ...[](Map)) [](Map)
- func (v *Value) ReplaceBool(replacer func(int, bool) bool) *Value
- func (v *Value) ReplaceComplex128(replacer func(int, complex128) complex128) *Value
- func (v *Value) ReplaceComplex64(replacer func(int, complex64) complex64) *Value
- func (v *Value) ReplaceFloat32(replacer func(int, float32) float32) *Value
- func (v *Value) ReplaceFloat64(replacer func(int, float64) float64) *Value
- func (v *Value) ReplaceInt(replacer func(int, int) int) *Value
- func (v *Value) ReplaceInt16(replacer func(int, int16) int16) *Value
- func (v *Value) ReplaceInt32(replacer func(int, int32) int32) *Value
- func (v *Value) ReplaceInt64(replacer func(int, int64) int64) *Value
- func (v *Value) ReplaceInt8(replacer func(int, int8) int8) *Value
- func (v *Value) ReplaceInter(replacer func(int, interface{}) interface{}) *Value
- func (v *Value) ReplaceMSI(replacer func(int, map[string]interface{}) map[string]interface{}) *Value
- func (v *Value) ReplaceObjxMap(replacer func(int, Map) Map) *Value
- func (v *Value) ReplaceStr(replacer func(int, string) string) *Value
- func (v *Value) ReplaceUint(replacer func(int, uint) uint) *Value
- func (v *Value) ReplaceUint16(replacer func(int, uint16) uint16) *Value
- func (v *Value) ReplaceUint32(replacer func(int, uint32) uint32) *Value
- func (v *Value) ReplaceUint64(replacer func(int, uint64) uint64) *Value
- func (v *Value) ReplaceUint8(replacer func(int, uint8) uint8) *Value
- func (v *Value) ReplaceUintptr(replacer func(int, uintptr) uintptr) *Value
- func (v *Value) Str(optionalDefault ...string) string
- func (v *Value) StrSlice(optionalDefault ...[]string) []string
- func (v *Value) String() string
- func (v *Value) StringSlice(optionalDefault ...[]string) []string
- func (v *Value) Uint(optionalDefault ...uint) uint
- func (v *Value) Uint16(optionalDefault ...uint16) uint16
- func (v *Value) Uint16Slice(optionalDefault ...[]uint16) []uint16
- func (v *Value) Uint32(optionalDefault ...uint32) uint32
- func (v *Value) Uint32Slice(optionalDefault ...[]uint32) []uint32
- func (v *Value) Uint64(optionalDefault ...uint64) uint64
- func (v *Value) Uint64Slice(optionalDefault ...[]uint64) []uint64
- func (v *Value) Uint8(optionalDefault ...uint8) uint8
- func (v *Value) Uint8Slice(optionalDefault ...[]uint8) []uint8
- func (v *Value) UintSlice(optionalDefault ...[]uint) []uint
- func (v *Value) Uintptr(optionalDefault ...uintptr) uintptr
- func (v *Value) UintptrSlice(optionalDefault ...[]uintptr) []uintptr
- func (v *Value) WhereBool(decider func(int, bool) bool) *Value
- func (v *Value) WhereComplex128(decider func(int, complex128) bool) *Value
- func (v *Value) WhereComplex64(decider func(int, complex64) bool) *Value
- func (v *Value) WhereFloat32(decider func(int, float32) bool) *Value
- func (v *Value) WhereFloat64(decider func(int, float64) bool) *Value
- func (v *Value) WhereInt(decider func(int, int) bool) *Value
- func (v *Value) WhereInt16(decider func(int, int16) bool) *Value
- func (v *Value) WhereInt32(decider func(int, int32) bool) *Value
- func (v *Value) WhereInt64(decider func(int, int64) bool) *Value
- func (v *Value) WhereInt8(decider func(int, int8) bool) *Value
- func (v *Value) WhereInter(decider func(int, interface{}) bool) *Value
- func (v *Value) WhereMSI(decider func(int, map[string]interface{}) bool) *Value
- func (v *Value) WhereObjxMap(decider func(int, Map) bool) *Value
- func (v *Value) WhereStr(decider func(int, string) bool) *Value
- func (v *Value) WhereUint(decider func(int, uint) bool) *Value
- func (v *Value) WhereUint16(decider func(int, uint16) bool) *Value
- func (v *Value) WhereUint32(decider func(int, uint32) bool) *Value
- func (v *Value) WhereUint64(decider func(int, uint64) bool) *Value
- func (v *Value) WhereUint8(decider func(int, uint8) bool) *Value
- func (v *Value) WhereUintptr(decider func(int, uintptr) bool) *Value
Constants ¶
const ( URLValuesSliceKeySuffixEmpty = "" URLValuesSliceKeySuffixArray = "[]" URLValuesSliceKeySuffixIndex = "[i]" )
const ( // PathSeparator is the character used to separate the elements // of the keypath. // // For example, `location.address.city` PathSeparator string = "." )
const SignatureSeparator = "_"
SignatureSeparator is the character that is used to separate the Base64 string from the security signature.
Variables ¶
var Nil = New(nil)
Nil represents a nil Map.
Functions ¶
func HashWithKey ¶
HashWithKey hashes the specified string using the security key
func SetURLValuesSliceKeySuffix ¶ added in v0.2.0
SetURLValuesSliceKeySuffix sets the character that is used to specify a suffic for slices parsed by URLValues. If the suffix is set to "[i]", then the index of the slice is used in place of i Ex: Suffix "[]" would have the form a[]=b&a[]=c OR Suffix "[i]" would have the form a[0]=b&a[1]=c OR Suffix "" would have the form a=b&a=c
Types ¶
type MSIConvertable ¶
type MSIConvertable interface { // MSI gets a map[string]interface{} (msi) representing the // object. MSI() map[string]interface{} }
MSIConvertable is an interface that defines methods for converting your custom types to a map[string]interface{} representation.
type Map ¶
type Map map[string]interface{}
Map provides extended functionality for working with untyped data, in particular map[string]interface (msi).
func FromBase64 ¶
FromBase64 creates a new Obj containing the data specified in the Base64 string.
The string is an encoded JSON string returned by Base64
func FromJSON ¶
FromJSON creates a new Map containing the data specified in the jsonString.
Returns an error if the JSON is invalid.
func FromJSONSlice ¶ added in v0.4.0
FromJSONSlice creates a new slice of Map containing the data specified in the jsonString. Works with jsons with a top level array
Returns an error if the JSON is invalid.
func FromSignedBase64 ¶
FromSignedBase64 creates a new Obj containing the data specified in the Base64 string.
The string is an encoded JSON string returned by SignedBase64
func FromURLQuery ¶
FromURLQuery generates a new Obj by parsing the specified query.
For queries with multiple values, the first value is selected.
func MSI ¶
func MSI(keyAndValuePairs ...interface{}) Map
MSI creates a map[string]interface{} and puts it inside a new Map.
The arguments follow a key, value pattern.
Returns nil if any key argument is non-string or if there are an odd number of arguments.
Example ¶
To easily create Maps:
m := objx.MSI("name", "Mat", "age", 29, "subobj", objx.MSI("active", true)) // creates an Map equivalent to m := objx.Map{"name": "Mat", "age": 29, "subobj": objx.Map{"active": true}}
func MustFromBase64 ¶
MustFromBase64 creates a new Obj containing the data specified in the Base64 string and panics if there is an error.
The string is an encoded JSON string returned by Base64
func MustFromJSON ¶
MustFromJSON creates a new Map containing the data specified in the jsonString.
Panics if the JSON is invalid.
func MustFromJSONSlice ¶ added in v0.4.0
MustFromJSONSlice creates a new slice of Map containing the data specified in the jsonString. Works with jsons with a top level array
Panics if the JSON is invalid.
func MustFromSignedBase64 ¶
MustFromSignedBase64 creates a new Obj containing the data specified in the Base64 string and panics if there is an error.
The string is an encoded JSON string returned by Base64
func MustFromURLQuery ¶
MustFromURLQuery generates a new Obj by parsing the specified query.
For queries with multiple values, the first value is selected.
Panics if it encounters an error
func New ¶
func New(data interface{}) Map
New creates a new Map containing the map[string]interface{} in the data argument. If the data argument is not a map[string]interface, New attempts to call the MSI() method on the MSIConvertable interface to create one.
func (Map) Base64 ¶
Base64 converts the contained object to a Base64 string representation of the JSON string representation
func (Map) Get ¶
Get gets the value using the specified selector and returns it inside a new Obj object.
If it cannot find the value, Get will return a nil value inside an instance of Obj.
Get can only operate directly on map[string]interface{} and []interface.
Example ¶
To access the title of the third chapter of the second book, do:
o.Get("books[1].chapters[2].title")
func (Map) Has ¶
Has gets whether there is something at the specified selector or not.
If m is nil, Has will always return false.
func (Map) Merge ¶
Merge blends the specified map with a copy of this map and returns the result.
Keys that appear in both will be selected from the specified map. This method requires that the wrapped object be a map[string]interface{}
func (Map) MergeHere ¶
MergeHere blends the specified map with this map and returns the current map.
Keys that appear in both will be selected from the specified map. The original map will be modified. This method requires that the wrapped object be a map[string]interface{}
func (Map) MustBase64 ¶
MustBase64 converts the contained object to a Base64 string representation of the JSON string representation and panics if there is an error
func (Map) MustJSON ¶
MustJSON converts the contained object to a JSON string representation and panics if there is an error
func (Map) MustSignedBase64 ¶
MustSignedBase64 converts the contained object to a Base64 string representation of the JSON string representation and signs it using the provided key and panics if there is an error
func (Map) Set ¶
Set sets the value using the specified selector and returns the object on which Set was called.
Set can only operate directly on map[string]interface{} and []interface
Example ¶
To set the title of the third chapter of the second book, do:
o.Set("books[1].chapters[2].title","Time to Go")
func (Map) SignedBase64 ¶
SignedBase64 converts the contained object to a Base64 string representation of the JSON string representation and signs it using the provided key.
func (Map) Transform ¶
Transform builds a new Obj giving the transformer a chance to change the keys and values as it goes. This method requires that the wrapped object be a map[string]interface{}
func (Map) TransformKeys ¶
TransformKeys builds a new map using the specified key mapping.
Unspecified keys will be unaltered. This method requires that the wrapped object be a map[string]interface{}
func (Map) URLQuery ¶
URLQuery gets an encoded URL query representing the given Obj. This function requires that the wrapped object be a map[string]interface{}
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
Value provides methods for extracting interface{} data in various types.
func (*Value) Bool ¶
Bool gets the value as a bool, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) BoolSlice ¶
BoolSlice gets the value as a []bool, returns the optionalDefault value or nil if the value is not a []bool.
func (*Value) CollectBool ¶
CollectBool uses the specified collector function to collect a value for each of the bools in the slice. The data returned will be a []interface{}.
func (*Value) CollectComplex128 ¶
func (v *Value) CollectComplex128(collector func(int, complex128) interface{}) *Value
CollectComplex128 uses the specified collector function to collect a value for each of the complex128s in the slice. The data returned will be a []interface{}.
func (*Value) CollectComplex64 ¶
CollectComplex64 uses the specified collector function to collect a value for each of the complex64s in the slice. The data returned will be a []interface{}.
func (*Value) CollectFloat32 ¶
CollectFloat32 uses the specified collector function to collect a value for each of the float32s in the slice. The data returned will be a []interface{}.
func (*Value) CollectFloat64 ¶
CollectFloat64 uses the specified collector function to collect a value for each of the float64s in the slice. The data returned will be a []interface{}.
func (*Value) CollectInt ¶
CollectInt uses the specified collector function to collect a value for each of the ints in the slice. The data returned will be a []interface{}.
func (*Value) CollectInt16 ¶
CollectInt16 uses the specified collector function to collect a value for each of the int16s in the slice. The data returned will be a []interface{}.
func (*Value) CollectInt32 ¶
CollectInt32 uses the specified collector function to collect a value for each of the int32s in the slice. The data returned will be a []interface{}.
func (*Value) CollectInt64 ¶
CollectInt64 uses the specified collector function to collect a value for each of the int64s in the slice. The data returned will be a []interface{}.
func (*Value) CollectInt8 ¶
CollectInt8 uses the specified collector function to collect a value for each of the int8s in the slice. The data returned will be a []interface{}.
func (*Value) CollectInter ¶
CollectInter uses the specified collector function to collect a value for each of the interface{}s in the slice. The data returned will be a []interface{}.
func (*Value) CollectMSI ¶
CollectMSI uses the specified collector function to collect a value for each of the map[string]interface{}s in the slice. The data returned will be a []interface{}.
func (*Value) CollectObjxMap ¶
CollectObjxMap uses the specified collector function to collect a value for each of the (Map)s in the slice. The data returned will be a []interface{}.
func (*Value) CollectStr ¶
CollectStr uses the specified collector function to collect a value for each of the strings in the slice. The data returned will be a []interface{}.
func (*Value) CollectUint ¶
CollectUint uses the specified collector function to collect a value for each of the uints in the slice. The data returned will be a []interface{}.
func (*Value) CollectUint16 ¶
CollectUint16 uses the specified collector function to collect a value for each of the uint16s in the slice. The data returned will be a []interface{}.
func (*Value) CollectUint32 ¶
CollectUint32 uses the specified collector function to collect a value for each of the uint32s in the slice. The data returned will be a []interface{}.
func (*Value) CollectUint64 ¶
CollectUint64 uses the specified collector function to collect a value for each of the uint64s in the slice. The data returned will be a []interface{}.
func (*Value) CollectUint8 ¶
CollectUint8 uses the specified collector function to collect a value for each of the uint8s in the slice. The data returned will be a []interface{}.
func (*Value) CollectUintptr ¶
CollectUintptr uses the specified collector function to collect a value for each of the uintptrs in the slice. The data returned will be a []interface{}.
func (*Value) Complex128 ¶
func (v *Value) Complex128(optionalDefault ...complex128) complex128
Complex128 gets the value as a complex128, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Complex128Slice ¶
func (v *Value) Complex128Slice(optionalDefault ...[]complex128) []complex128
Complex128Slice gets the value as a []complex128, returns the optionalDefault value or nil if the value is not a []complex128.
func (*Value) Complex64 ¶
Complex64 gets the value as a complex64, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Complex64Slice ¶
Complex64Slice gets the value as a []complex64, returns the optionalDefault value or nil if the value is not a []complex64.
func (*Value) Data ¶
func (v *Value) Data() interface{}
Data returns the raw data contained by this Value
func (*Value) EachBool ¶
EachBool calls the specified callback for each object in the []bool.
Panics if the object is the wrong type.
func (*Value) EachComplex128 ¶
func (v *Value) EachComplex128(callback func(int, complex128) bool) *Value
EachComplex128 calls the specified callback for each object in the []complex128.
Panics if the object is the wrong type.
func (*Value) EachComplex64 ¶
EachComplex64 calls the specified callback for each object in the []complex64.
Panics if the object is the wrong type.
func (*Value) EachFloat32 ¶
EachFloat32 calls the specified callback for each object in the []float32.
Panics if the object is the wrong type.
func (*Value) EachFloat64 ¶
EachFloat64 calls the specified callback for each object in the []float64.
Panics if the object is the wrong type.
func (*Value) EachInt ¶
EachInt calls the specified callback for each object in the []int.
Panics if the object is the wrong type.
func (*Value) EachInt16 ¶
EachInt16 calls the specified callback for each object in the []int16.
Panics if the object is the wrong type.
func (*Value) EachInt32 ¶
EachInt32 calls the specified callback for each object in the []int32.
Panics if the object is the wrong type.
func (*Value) EachInt64 ¶
EachInt64 calls the specified callback for each object in the []int64.
Panics if the object is the wrong type.
func (*Value) EachInt8 ¶
EachInt8 calls the specified callback for each object in the []int8.
Panics if the object is the wrong type.
func (*Value) EachInter ¶
EachInter calls the specified callback for each object in the []interface{}.
Panics if the object is the wrong type.
func (*Value) EachMSI ¶
EachMSI calls the specified callback for each object in the []map[string]interface{}.
Panics if the object is the wrong type.
func (*Value) EachObjxMap ¶
EachObjxMap calls the specified callback for each object in the [](Map).
Panics if the object is the wrong type.
func (*Value) EachStr ¶
EachStr calls the specified callback for each object in the []string.
Panics if the object is the wrong type.
func (*Value) EachUint ¶
EachUint calls the specified callback for each object in the []uint.
Panics if the object is the wrong type.
func (*Value) EachUint16 ¶
EachUint16 calls the specified callback for each object in the []uint16.
Panics if the object is the wrong type.
func (*Value) EachUint32 ¶
EachUint32 calls the specified callback for each object in the []uint32.
Panics if the object is the wrong type.
func (*Value) EachUint64 ¶
EachUint64 calls the specified callback for each object in the []uint64.
Panics if the object is the wrong type.
func (*Value) EachUint8 ¶
EachUint8 calls the specified callback for each object in the []uint8.
Panics if the object is the wrong type.
func (*Value) EachUintptr ¶
EachUintptr calls the specified callback for each object in the []uintptr.
Panics if the object is the wrong type.
func (*Value) Float32 ¶
Float32 gets the value as a float32, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Float32Slice ¶
Float32Slice gets the value as a []float32, returns the optionalDefault value or nil if the value is not a []float32.
func (*Value) Float64 ¶
Float64 gets the value as a float64, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Float64Slice ¶
Float64Slice gets the value as a []float64, returns the optionalDefault value or nil if the value is not a []float64.
func (*Value) GroupBool ¶
GroupBool uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]bool.
func (*Value) GroupComplex128 ¶
func (v *Value) GroupComplex128(grouper func(int, complex128) string) *Value
GroupComplex128 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]complex128.
func (*Value) GroupComplex64 ¶
GroupComplex64 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]complex64.
func (*Value) GroupFloat32 ¶
GroupFloat32 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]float32.
func (*Value) GroupFloat64 ¶
GroupFloat64 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]float64.
func (*Value) GroupInt ¶
GroupInt uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]int.
func (*Value) GroupInt16 ¶
GroupInt16 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]int16.
func (*Value) GroupInt32 ¶
GroupInt32 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]int32.
func (*Value) GroupInt64 ¶
GroupInt64 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]int64.
func (*Value) GroupInt8 ¶
GroupInt8 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]int8.
func (*Value) GroupInter ¶
GroupInter uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]interface{}.
func (*Value) GroupMSI ¶
GroupMSI uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]map[string]interface{}.
func (*Value) GroupObjxMap ¶
GroupObjxMap uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][](Map).
func (*Value) GroupStr ¶
GroupStr uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]string.
func (*Value) GroupUint ¶
GroupUint uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uint.
func (*Value) GroupUint16 ¶
GroupUint16 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uint16.
func (*Value) GroupUint32 ¶
GroupUint32 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uint32.
func (*Value) GroupUint64 ¶
GroupUint64 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uint64.
func (*Value) GroupUint8 ¶
GroupUint8 uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uint8.
func (*Value) GroupUintptr ¶
GroupUintptr uses the specified grouper function to group the items keyed by the return of the grouper. The object contained in the result will contain a map[string][]uintptr.
func (*Value) Int ¶
Int gets the value as a int, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Int16 ¶
Int16 gets the value as a int16, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Int16Slice ¶
Int16Slice gets the value as a []int16, returns the optionalDefault value or nil if the value is not a []int16.
func (*Value) Int32 ¶
Int32 gets the value as a int32, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Int32Slice ¶
Int32Slice gets the value as a []int32, returns the optionalDefault value or nil if the value is not a []int32.
func (*Value) Int64 ¶
Int64 gets the value as a int64, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Int64Slice ¶
Int64Slice gets the value as a []int64, returns the optionalDefault value or nil if the value is not a []int64.
func (*Value) Int8 ¶
Int8 gets the value as a int8, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Int8Slice ¶
Int8Slice gets the value as a []int8, returns the optionalDefault value or nil if the value is not a []int8.
func (*Value) IntSlice ¶
IntSlice gets the value as a []int, returns the optionalDefault value or nil if the value is not a []int.
func (*Value) Inter ¶
func (v *Value) Inter(optionalDefault ...interface{}) interface{}
Inter gets the value as a interface{}, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) InterSlice ¶
func (v *Value) InterSlice(optionalDefault ...[]interface{}) []interface{}
InterSlice gets the value as a []interface{}, returns the optionalDefault value or nil if the value is not a []interface{}.
func (*Value) IsBoolSlice ¶
IsBoolSlice gets whether the object contained is a []bool or not.
func (*Value) IsComplex128 ¶
IsComplex128 gets whether the object contained is a complex128 or not.
func (*Value) IsComplex128Slice ¶
IsComplex128Slice gets whether the object contained is a []complex128 or not.
func (*Value) IsComplex64 ¶
IsComplex64 gets whether the object contained is a complex64 or not.
func (*Value) IsComplex64Slice ¶
IsComplex64Slice gets whether the object contained is a []complex64 or not.
func (*Value) IsFloat32Slice ¶
IsFloat32Slice gets whether the object contained is a []float32 or not.
func (*Value) IsFloat64Slice ¶
IsFloat64Slice gets whether the object contained is a []float64 or not.
func (*Value) IsInt16Slice ¶
IsInt16Slice gets whether the object contained is a []int16 or not.
func (*Value) IsInt32Slice ¶
IsInt32Slice gets whether the object contained is a []int32 or not.
func (*Value) IsInt64Slice ¶
IsInt64Slice gets whether the object contained is a []int64 or not.
func (*Value) IsInt8Slice ¶
IsInt8Slice gets whether the object contained is a []int8 or not.
func (*Value) IsIntSlice ¶
IsIntSlice gets whether the object contained is a []int or not.
func (*Value) IsInterSlice ¶
IsInterSlice gets whether the object contained is a []interface{} or not.
func (*Value) IsMSISlice ¶
IsMSISlice gets whether the object contained is a []map[string]interface{} or not.
func (*Value) IsObjxMapSlice ¶
IsObjxMapSlice gets whether the object contained is a [](Map) or not.
func (*Value) IsStrSlice ¶
IsStrSlice gets whether the object contained is a []string or not.
func (*Value) IsUint16Slice ¶
IsUint16Slice gets whether the object contained is a []uint16 or not.
func (*Value) IsUint32Slice ¶
IsUint32Slice gets whether the object contained is a []uint32 or not.
func (*Value) IsUint64Slice ¶
IsUint64Slice gets whether the object contained is a []uint64 or not.
func (*Value) IsUint8Slice ¶
IsUint8Slice gets whether the object contained is a []uint8 or not.
func (*Value) IsUintSlice ¶
IsUintSlice gets whether the object contained is a []uint or not.
func (*Value) IsUintptrSlice ¶
IsUintptrSlice gets whether the object contained is a []uintptr or not.
func (*Value) MSI ¶
MSI gets the value as a map[string]interface{}, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) MSISlice ¶
MSISlice gets the value as a []map[string]interface{}, returns the optionalDefault value or nil if the value is not a []map[string]interface{}.
func (*Value) MustBoolSlice ¶
MustBoolSlice gets the value as a []bool.
Panics if the object is not a []bool.
func (*Value) MustComplex128 ¶
func (v *Value) MustComplex128() complex128
MustComplex128 gets the value as a complex128.
Panics if the object is not a complex128.
func (*Value) MustComplex128Slice ¶
func (v *Value) MustComplex128Slice() []complex128
MustComplex128Slice gets the value as a []complex128.
Panics if the object is not a []complex128.
func (*Value) MustComplex64 ¶
MustComplex64 gets the value as a complex64.
Panics if the object is not a complex64.
func (*Value) MustComplex64Slice ¶
MustComplex64Slice gets the value as a []complex64.
Panics if the object is not a []complex64.
func (*Value) MustFloat32 ¶
MustFloat32 gets the value as a float32.
Panics if the object is not a float32.
func (*Value) MustFloat32Slice ¶
MustFloat32Slice gets the value as a []float32.
Panics if the object is not a []float32.
func (*Value) MustFloat64 ¶
MustFloat64 gets the value as a float64.
Panics if the object is not a float64.
func (*Value) MustFloat64Slice ¶
MustFloat64Slice gets the value as a []float64.
Panics if the object is not a []float64.
func (*Value) MustInt16Slice ¶
MustInt16Slice gets the value as a []int16.
Panics if the object is not a []int16.
func (*Value) MustInt32Slice ¶
MustInt32Slice gets the value as a []int32.
Panics if the object is not a []int32.
func (*Value) MustInt64Slice ¶
MustInt64Slice gets the value as a []int64.
Panics if the object is not a []int64.
func (*Value) MustInt8Slice ¶
MustInt8Slice gets the value as a []int8.
Panics if the object is not a []int8.
func (*Value) MustIntSlice ¶
MustIntSlice gets the value as a []int.
Panics if the object is not a []int.
func (*Value) MustInter ¶
func (v *Value) MustInter() interface{}
MustInter gets the value as a interface{}.
Panics if the object is not a interface{}.
func (*Value) MustInterSlice ¶
func (v *Value) MustInterSlice() []interface{}
MustInterSlice gets the value as a []interface{}.
Panics if the object is not a []interface{}.
func (*Value) MustMSI ¶
MustMSI gets the value as a map[string]interface{}.
Panics if the object is not a map[string]interface{}.
func (*Value) MustMSISlice ¶
MustMSISlice gets the value as a []map[string]interface{}.
Panics if the object is not a []map[string]interface{}.
func (*Value) MustObjxMap ¶
MustObjxMap gets the value as a (Map).
Panics if the object is not a (Map).
func (*Value) MustObjxMapSlice ¶
MustObjxMapSlice gets the value as a [](Map).
Panics if the object is not a [](Map).
func (*Value) MustStrSlice ¶
MustStrSlice gets the value as a []string.
Panics if the object is not a []string.
func (*Value) MustUint16 ¶
MustUint16 gets the value as a uint16.
Panics if the object is not a uint16.
func (*Value) MustUint16Slice ¶
MustUint16Slice gets the value as a []uint16.
Panics if the object is not a []uint16.
func (*Value) MustUint32 ¶
MustUint32 gets the value as a uint32.
Panics if the object is not a uint32.
func (*Value) MustUint32Slice ¶
MustUint32Slice gets the value as a []uint32.
Panics if the object is not a []uint32.
func (*Value) MustUint64 ¶
MustUint64 gets the value as a uint64.
Panics if the object is not a uint64.
func (*Value) MustUint64Slice ¶
MustUint64Slice gets the value as a []uint64.
Panics if the object is not a []uint64.
func (*Value) MustUint8Slice ¶
MustUint8Slice gets the value as a []uint8.
Panics if the object is not a []uint8.
func (*Value) MustUintSlice ¶
MustUintSlice gets the value as a []uint.
Panics if the object is not a []uint.
func (*Value) MustUintptr ¶
MustUintptr gets the value as a uintptr.
Panics if the object is not a uintptr.
func (*Value) MustUintptrSlice ¶
MustUintptrSlice gets the value as a []uintptr.
Panics if the object is not a []uintptr.
func (*Value) ObjxMap ¶
ObjxMap gets the value as a (Map), returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) ObjxMapSlice ¶
ObjxMapSlice gets the value as a [](Map), returns the optionalDefault value or nil if the value is not a [](Map).
func (*Value) ReplaceBool ¶
ReplaceBool uses the specified function to replace each bools by iterating each item. The data in the returned result will be a []bool containing the replaced items.
func (*Value) ReplaceComplex128 ¶
func (v *Value) ReplaceComplex128(replacer func(int, complex128) complex128) *Value
ReplaceComplex128 uses the specified function to replace each complex128s by iterating each item. The data in the returned result will be a []complex128 containing the replaced items.
func (*Value) ReplaceComplex64 ¶
ReplaceComplex64 uses the specified function to replace each complex64s by iterating each item. The data in the returned result will be a []complex64 containing the replaced items.
func (*Value) ReplaceFloat32 ¶
ReplaceFloat32 uses the specified function to replace each float32s by iterating each item. The data in the returned result will be a []float32 containing the replaced items.
func (*Value) ReplaceFloat64 ¶
ReplaceFloat64 uses the specified function to replace each float64s by iterating each item. The data in the returned result will be a []float64 containing the replaced items.
func (*Value) ReplaceInt ¶
ReplaceInt uses the specified function to replace each ints by iterating each item. The data in the returned result will be a []int containing the replaced items.
func (*Value) ReplaceInt16 ¶
ReplaceInt16 uses the specified function to replace each int16s by iterating each item. The data in the returned result will be a []int16 containing the replaced items.
func (*Value) ReplaceInt32 ¶
ReplaceInt32 uses the specified function to replace each int32s by iterating each item. The data in the returned result will be a []int32 containing the replaced items.
func (*Value) ReplaceInt64 ¶
ReplaceInt64 uses the specified function to replace each int64s by iterating each item. The data in the returned result will be a []int64 containing the replaced items.
func (*Value) ReplaceInt8 ¶
ReplaceInt8 uses the specified function to replace each int8s by iterating each item. The data in the returned result will be a []int8 containing the replaced items.
func (*Value) ReplaceInter ¶
ReplaceInter uses the specified function to replace each interface{}s by iterating each item. The data in the returned result will be a []interface{} containing the replaced items.
func (*Value) ReplaceMSI ¶
func (v *Value) ReplaceMSI(replacer func(int, map[string]interface{}) map[string]interface{}) *Value
ReplaceMSI uses the specified function to replace each map[string]interface{}s by iterating each item. The data in the returned result will be a []map[string]interface{} containing the replaced items.
func (*Value) ReplaceObjxMap ¶
ReplaceObjxMap uses the specified function to replace each (Map)s by iterating each item. The data in the returned result will be a [](Map) containing the replaced items.
func (*Value) ReplaceStr ¶
ReplaceStr uses the specified function to replace each strings by iterating each item. The data in the returned result will be a []string containing the replaced items.
func (*Value) ReplaceUint ¶
ReplaceUint uses the specified function to replace each uints by iterating each item. The data in the returned result will be a []uint containing the replaced items.
func (*Value) ReplaceUint16 ¶
ReplaceUint16 uses the specified function to replace each uint16s by iterating each item. The data in the returned result will be a []uint16 containing the replaced items.
func (*Value) ReplaceUint32 ¶
ReplaceUint32 uses the specified function to replace each uint32s by iterating each item. The data in the returned result will be a []uint32 containing the replaced items.
func (*Value) ReplaceUint64 ¶
ReplaceUint64 uses the specified function to replace each uint64s by iterating each item. The data in the returned result will be a []uint64 containing the replaced items.
func (*Value) ReplaceUint8 ¶
ReplaceUint8 uses the specified function to replace each uint8s by iterating each item. The data in the returned result will be a []uint8 containing the replaced items.
func (*Value) ReplaceUintptr ¶
ReplaceUintptr uses the specified function to replace each uintptrs by iterating each item. The data in the returned result will be a []uintptr containing the replaced items.
func (*Value) Str ¶
Str gets the value as a string, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) StrSlice ¶
StrSlice gets the value as a []string, returns the optionalDefault value or nil if the value is not a []string.
func (*Value) StringSlice ¶ added in v0.2.0
StringSlice returns the value always as a []string
func (*Value) Uint ¶
Uint gets the value as a uint, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Uint16 ¶
Uint16 gets the value as a uint16, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Uint16Slice ¶
Uint16Slice gets the value as a []uint16, returns the optionalDefault value or nil if the value is not a []uint16.
func (*Value) Uint32 ¶
Uint32 gets the value as a uint32, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Uint32Slice ¶
Uint32Slice gets the value as a []uint32, returns the optionalDefault value or nil if the value is not a []uint32.
func (*Value) Uint64 ¶
Uint64 gets the value as a uint64, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Uint64Slice ¶
Uint64Slice gets the value as a []uint64, returns the optionalDefault value or nil if the value is not a []uint64.
func (*Value) Uint8 ¶
Uint8 gets the value as a uint8, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) Uint8Slice ¶
Uint8Slice gets the value as a []uint8, returns the optionalDefault value or nil if the value is not a []uint8.
func (*Value) UintSlice ¶
UintSlice gets the value as a []uint, returns the optionalDefault value or nil if the value is not a []uint.
func (*Value) Uintptr ¶
Uintptr gets the value as a uintptr, returns the optionalDefault value or a system default object if the value is the wrong type.
func (*Value) UintptrSlice ¶
UintptrSlice gets the value as a []uintptr, returns the optionalDefault value or nil if the value is not a []uintptr.
func (*Value) WhereBool ¶
WhereBool uses the specified decider function to select items from the []bool. The object contained in the result will contain only the selected items.
func (*Value) WhereComplex128 ¶
func (v *Value) WhereComplex128(decider func(int, complex128) bool) *Value
WhereComplex128 uses the specified decider function to select items from the []complex128. The object contained in the result will contain only the selected items.
func (*Value) WhereComplex64 ¶
WhereComplex64 uses the specified decider function to select items from the []complex64. The object contained in the result will contain only the selected items.
func (*Value) WhereFloat32 ¶
WhereFloat32 uses the specified decider function to select items from the []float32. The object contained in the result will contain only the selected items.
func (*Value) WhereFloat64 ¶
WhereFloat64 uses the specified decider function to select items from the []float64. The object contained in the result will contain only the selected items.
func (*Value) WhereInt ¶
WhereInt uses the specified decider function to select items from the []int. The object contained in the result will contain only the selected items.
func (*Value) WhereInt16 ¶
WhereInt16 uses the specified decider function to select items from the []int16. The object contained in the result will contain only the selected items.
func (*Value) WhereInt32 ¶
WhereInt32 uses the specified decider function to select items from the []int32. The object contained in the result will contain only the selected items.
func (*Value) WhereInt64 ¶
WhereInt64 uses the specified decider function to select items from the []int64. The object contained in the result will contain only the selected items.
func (*Value) WhereInt8 ¶
WhereInt8 uses the specified decider function to select items from the []int8. The object contained in the result will contain only the selected items.
func (*Value) WhereInter ¶
WhereInter uses the specified decider function to select items from the []interface{}. The object contained in the result will contain only the selected items.
func (*Value) WhereMSI ¶
WhereMSI uses the specified decider function to select items from the []map[string]interface{}. The object contained in the result will contain only the selected items.
func (*Value) WhereObjxMap ¶
WhereObjxMap uses the specified decider function to select items from the [](Map). The object contained in the result will contain only the selected items.
func (*Value) WhereStr ¶
WhereStr uses the specified decider function to select items from the []string. The object contained in the result will contain only the selected items.
func (*Value) WhereUint ¶
WhereUint uses the specified decider function to select items from the []uint. The object contained in the result will contain only the selected items.
func (*Value) WhereUint16 ¶
WhereUint16 uses the specified decider function to select items from the []uint16. The object contained in the result will contain only the selected items.
func (*Value) WhereUint32 ¶
WhereUint32 uses the specified decider function to select items from the []uint32. The object contained in the result will contain only the selected items.
func (*Value) WhereUint64 ¶
WhereUint64 uses the specified decider function to select items from the []uint64. The object contained in the result will contain only the selected items.
func (*Value) WhereUint8 ¶
WhereUint8 uses the specified decider function to select items from the []uint8. The object contained in the result will contain only the selected items.