MCPcopy Create free account

hub / github.com/stretchr/objx / functions

Functions553 in github.com/stretchr/objx

↓ 800 callersMethodEqual
(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{})
std_assert_test.go:41
↓ 600 callersMethodGet
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 insi
accessors.go:45
↓ 65 callersMethodData
Data returns the raw data contained by this Value
value.go:16
↓ 56 callersMethodTrue
(t *testing.T, value bool, msgAndArgs ...interface{})
std_assert_test.go:112
↓ 50 callersMethodPanics
(t *testing.T, f func(), msgAndArgs ...interface{})
std_assert_test.go:172
↓ 46 callersFunctionNew
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
map.go:35
↓ 33 callersMethodMustInterSlice
MustInterSlice gets the value as a []interface{}. Panics if the object is not a []interface{}.
type_specific_codegen.go:41
↓ 33 callersMethodNil
(t *testing.T, object interface{}, msgAndArgs ...interface{})
std_assert_test.go:83
↓ 28 callersMethodStr
* Str (string and []string) */ Str gets the value as a string, returns the optionalDefault value or a system default object if the value is the wro
type_specific_codegen.go:259
↓ 24 callersMethodString
String returns the value always as a string
value.go:21
↓ 23 callersMethodMustObjxMapSlice
MustObjxMapSlice gets the value as a [](Map). Panics if the object is not a [](Map).
type_specific.go:237
↓ 23 callersMethodSet
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
accessors.go:60
↓ 22 callersMethodMustMSISlice
MustMSISlice gets the value as a []map[string]interface{}. Panics if the object is not a []map[string]interface{}.
type_specific.go:57
↓ 21 callersMethodError
(t *testing.T, err error, msgAndArgs ...interface{})
std_assert_test.go:154
↓ 18 callersMethodStringSlice
StringSlice returns the value always as a []string
value.go:58
↓ 17 callersMethodNotNil
(t *testing.T, object interface{}, msgAndArgs ...interface{})
std_assert_test.go:98
↓ 14 callersFunctionMustFromJSON
****** Conversion Constructors MustFromJSON creates a new Map containing the data specified in the jsonString. Panics if the JSON is invalid.
map.go:86
↓ 13 callersMethodHas
Has gets whether there is something at the specified selector or not. If m is nil, Has will always return false.
tests.go:7
↓ 12 callersMethodMustBoolSlice
MustBoolSlice gets the value as a []bool. Panics if the object is not a []bool.
type_specific_codegen.go:166
↓ 12 callersMethodMustFloat32Slice
MustFloat32Slice gets the value as a []float32. Panics if the object is not a []float32.
type_specific_codegen.go:1801
↓ 12 callersMethodMustFloat64Slice
MustFloat64Slice gets the value as a []float64. Panics if the object is not a []float64.
type_specific_codegen.go:1926
↓ 12 callersMethodMustInt16Slice
MustInt16Slice gets the value as a []int16. Panics if the object is not a []int16.
type_specific_codegen.go:676
↓ 12 callersMethodMustInt32Slice
MustInt32Slice gets the value as a []int32. Panics if the object is not a []int32.
type_specific_codegen.go:801
↓ 12 callersMethodMustInt64Slice
MustInt64Slice gets the value as a []int64. Panics if the object is not a []int64.
type_specific_codegen.go:926
↓ 12 callersMethodMustInt8Slice
MustInt8Slice gets the value as a []int8. Panics if the object is not a []int8.
type_specific_codegen.go:551
↓ 12 callersMethodMustIntSlice
MustIntSlice gets the value as a []int. Panics if the object is not a []int.
type_specific_codegen.go:426
↓ 12 callersMethodMustStrSlice
MustStrSlice gets the value as a []string. Panics if the object is not a []string.
type_specific_codegen.go:291
↓ 12 callersMethodMustUint16Slice
MustUint16Slice gets the value as a []uint16. Panics if the object is not a []uint16.
type_specific_codegen.go:1301
↓ 12 callersMethodMustUint32Slice
MustUint32Slice gets the value as a []uint32. Panics if the object is not a []uint32.
type_specific_codegen.go:1426
↓ 12 callersMethodMustUint64Slice
MustUint64Slice gets the value as a []uint64. Panics if the object is not a []uint64.
type_specific_codegen.go:1551
↓ 12 callersMethodMustUint8Slice
MustUint8Slice gets the value as a []uint8. Panics if the object is not a []uint8.
type_specific_codegen.go:1176
↓ 12 callersMethodMustUintSlice
MustUintSlice gets the value as a []uint. Panics if the object is not a []uint.
type_specific_codegen.go:1051
↓ 12 callersMethodObjxMapSlice
ObjxMapSlice gets the value as a [](Map), returns the optionalDefault value or nil if the value is not a [](Map).
type_specific.go:199
↓ 12 callersMethodfail
(t *testing.T, msg string, msgAndArgs ...interface{})
std_assert_test.go:17
↓ 12 callersMethodfail
(t *testing.T, msg string, msgAndArgs ...interface{})
std_assert_test.go:26
↓ 11 callersMethodMustComplex128Slice
MustComplex128Slice gets the value as a []complex128. Panics if the object is not a []complex128.
type_specific_codegen.go:2176
↓ 11 callersMethodMustComplex64Slice
MustComplex64Slice gets the value as a []complex64. Panics if the object is not a []complex64.
type_specific_codegen.go:2051
↓ 11 callersMethodMustUintptrSlice
MustUintptrSlice gets the value as a []uintptr. Panics if the object is not a []uintptr.
type_specific_codegen.go:1676
↓ 11 callersMethodNoError
(t *testing.T, err error, msgAndArgs ...interface{})
std_assert_test.go:140
↓ 10 callersMethodFalse
(t *testing.T, value bool, msgAndArgs ...interface{})
std_assert_test.go:126
↓ 8 callersMethodInt
* Int (int and []int) */ Int gets the value as a int, returns the optionalDefault value or a system default object if the value is the wrong type.
type_specific_codegen.go:384
↓ 8 callersFunctionMSI
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
map.go:60
↓ 8 callersMethodMSISlice
MSISlice gets the value as a []map[string]interface{}, returns the optionalDefault value or nil if the value is not a []map[string]interface{}.
type_specific.go:34
↓ 7 callersFunctionFromJSON
FromJSON creates a new Map containing the data specified in the jsonString. Returns an error if the JSON is invalid.
map.go:110
↓ 7 callersMethodJSON
JSON converts the contained object to a JSON string representation
conversions.go:50
↓ 7 callersMethodObjxMap
* ObjxMap ((Map) and [](Map)) */ ObjxMap gets the value as a (Map), returns the optionalDefault value or a system default object if the value is th
type_specific.go:174
↓ 6 callersMethodEachMSI
EachMSI calls the specified callback for each object in the []map[string]interface{}. Panics if the object is the wrong type.
type_specific.go:101
↓ 6 callersMethodEachObjxMap
EachObjxMap calls the specified callback for each object in the [](Map). Panics if the object is the wrong type.
type_specific.go:281
↓ 6 callersMethodLen
(t *testing.T, object interface{}, length int, msgAndArgs ...interface{})
std_assert_test.go:229
↓ 6 callersMethodMSI
MSI gets a map[string]interface{} (msi) representing the object.
map.go:17
↓ 6 callersFunctionSetURLValuesSliceKeySuffix
SetURLValuesSliceKeySuffix sets the character that is used to specify a suffix for slices parsed by URLValues. If the suffix is set to "[i]", then the
conversions.go:39
↓ 5 callersMethodEachBool
EachBool calls the specified callback for each object in the []bool. Panics if the object is the wrong type.
type_specific_codegen.go:186
↓ 5 callersMethodEachComplex128
EachComplex128 calls the specified callback for each object in the []complex128. Panics if the object is the wrong type.
type_specific_codegen.go:2196
↓ 5 callersMethodEachComplex64
EachComplex64 calls the specified callback for each object in the []complex64. Panics if the object is the wrong type.
type_specific_codegen.go:2071
↓ 5 callersMethodEachFloat32
EachFloat32 calls the specified callback for each object in the []float32. Panics if the object is the wrong type.
type_specific_codegen.go:1821
↓ 5 callersMethodEachFloat64
EachFloat64 calls the specified callback for each object in the []float64. Panics if the object is the wrong type.
type_specific_codegen.go:1946
↓ 5 callersMethodEachInt
EachInt calls the specified callback for each object in the []int. Panics if the object is the wrong type.
type_specific_codegen.go:446
↓ 5 callersMethodEachInt16
EachInt16 calls the specified callback for each object in the []int16. Panics if the object is the wrong type.
type_specific_codegen.go:696
↓ 5 callersMethodEachInt32
EachInt32 calls the specified callback for each object in the []int32. Panics if the object is the wrong type.
type_specific_codegen.go:821
↓ 5 callersMethodEachInt64
EachInt64 calls the specified callback for each object in the []int64. Panics if the object is the wrong type.
type_specific_codegen.go:946
↓ 5 callersMethodEachInt8
EachInt8 calls the specified callback for each object in the []int8. Panics if the object is the wrong type.
type_specific_codegen.go:571
↓ 5 callersMethodEachInter
EachInter calls the specified callback for each object in the []interface{}. Panics if the object is the wrong type.
type_specific_codegen.go:61
↓ 5 callersMethodEachStr
EachStr calls the specified callback for each object in the []string. Panics if the object is the wrong type.
type_specific_codegen.go:311
↓ 5 callersMethodEachUint
EachUint calls the specified callback for each object in the []uint. Panics if the object is the wrong type.
type_specific_codegen.go:1071
↓ 5 callersMethodEachUint16
EachUint16 calls the specified callback for each object in the []uint16. Panics if the object is the wrong type.
type_specific_codegen.go:1321
↓ 5 callersMethodEachUint32
EachUint32 calls the specified callback for each object in the []uint32. Panics if the object is the wrong type.
type_specific_codegen.go:1446
↓ 5 callersMethodEachUint64
EachUint64 calls the specified callback for each object in the []uint64. Panics if the object is the wrong type.
type_specific_codegen.go:1571
↓ 5 callersMethodEachUint8
EachUint8 calls the specified callback for each object in the []uint8. Panics if the object is the wrong type.
type_specific_codegen.go:1196
↓ 5 callersMethodEachUintptr
EachUintptr calls the specified callback for each object in the []uintptr. Panics if the object is the wrong type.
type_specific_codegen.go:1696
↓ 5 callersFunctionFromSignedBase64
FromSignedBase64 creates a new Obj containing the data specified in the Base64 string. The string is an encoded JSON string returned by SignedBase64
map.go:161
↓ 5 callersMethodInterSlice
InterSlice gets the value as a []interface{}, returns the optionalDefault value or nil if the value is not a []interface{}.
type_specific_codegen.go:28
↓ 5 callersMethodIsMSISlice
IsMSISlice gets whether the object contained is a []map[string]interface{} or not.
type_specific.go:75
↓ 5 callersMethodIsObjxMapSlice
IsObjxMapSlice gets whether the object contained is a [](Map) or not.
type_specific.go:254
↓ 5 callersMethodValue
Value returns the internal value instance
map.go:25
↓ 4 callersMethodBase64
Base64 converts the contained object to a Base64 string representation of the JSON string representation
conversions.go:131
↓ 4 callersMethodBool
* Bool (bool and []bool) */ Bool gets the value as a bool, returns the optionalDefault value or a system default object if the value is the wrong t
type_specific_codegen.go:134
↓ 4 callersMethodFloat32
* Float32 (float32 and []float32) */ Float32 gets the value as a float32, returns the optionalDefault value or a system default object if the value
type_specific_codegen.go:1769
↓ 4 callersMethodFloat64
* Float64 (float64 and []float64) */ Float64 gets the value as a float64, returns the optionalDefault value or a system default object if the value
type_specific_codegen.go:1894
↓ 4 callersFunctionFromBase64
FromBase64 creates a new Obj containing the data specified in the Base64 string. The string is an encoded JSON string returned by Base64
map.go:136
↓ 4 callersMethodInt16
* Int16 (int16 and []int16) */ Int16 gets the value as a int16, returns the optionalDefault value or a system default object if the value is the wr
type_specific_codegen.go:644
↓ 4 callersMethodInt32
* Int32 (int32 and []int32) */ Int32 gets the value as a int32, returns the optionalDefault value or a system default object if the value is the wr
type_specific_codegen.go:769
↓ 4 callersMethodInt64
* Int64 (int64 and []int64) */ Int64 gets the value as a int64, returns the optionalDefault value or a system default object if the value is the wr
type_specific_codegen.go:894
↓ 4 callersMethodInt8
* Int8 (int8 and []int8) */ Int8 gets the value as a int8, returns the optionalDefault value or a system default object if the value is the wrong t
type_specific_codegen.go:519
↓ 4 callersMethodIsNil
IsNil gets whether the data is nil or not.
tests.go:15
↓ 4 callersFunctionMustFromSignedBase64
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 J
map.go:178
↓ 4 callersMethodMustInt
MustInt gets the value as a int. Panics if the object is not a int.
type_specific_codegen.go:402
↓ 4 callersMethodUint
* Uint (uint and []uint) */ Uint gets the value as a uint, returns the optionalDefault value or a system default object if the value is the wrong t
type_specific_codegen.go:1019
↓ 4 callersMethodUint16
* Uint16 (uint16 and []uint16) */ Uint16 gets the value as a uint16, returns the optionalDefault value or a system default object if the value is t
type_specific_codegen.go:1269
↓ 4 callersMethodUint32
* Uint32 (uint32 and []uint32) */ Uint32 gets the value as a uint32, returns the optionalDefault value or a system default object if the value is t
type_specific_codegen.go:1394
↓ 4 callersMethodUint64
* Uint64 (uint64 and []uint64) */ Uint64 gets the value as a uint64, returns the optionalDefault value or a system default object if the value is t
type_specific_codegen.go:1519
↓ 4 callersMethodUint8
* Uint8 (uint8 and []uint8) */ Uint8 gets the value as a uint8, returns the optionalDefault value or a system default object if the value is the wr
type_specific_codegen.go:1144
↓ 4 callersFunctioncleanUp
(v interface{})
conversions.go:102
↓ 4 callersFunctiongetURLQueryMap
()
conversions_test.go:174
↓ 4 callersFunctionisNil
(i interface{})
std_assert_test.go:63
↓ 3 callersMethodBoolSlice
BoolSlice gets the value as a []bool, returns the optionalDefault value or nil if the value is not a []bool.
type_specific_codegen.go:153
↓ 3 callersMethodComplex128
* Complex128 (complex128 and []complex128) */ Complex128 gets the value as a complex128, returns the optionalDefault value or a system default obje
type_specific_codegen.go:2144
↓ 3 callersMethodComplex128Slice
Complex128Slice gets the value as a []complex128, returns the optionalDefault value or nil if the value is not a []complex128.
type_specific_codegen.go:2163
↓ 3 callersMethodComplex64
* Complex64 (complex64 and []complex64) */ Complex64 gets the value as a complex64, returns the optionalDefault value or a system default object if
type_specific_codegen.go:2019
↓ 3 callersMethodComplex64Slice
Complex64Slice gets the value as a []complex64, returns the optionalDefault value or nil if the value is not a []complex64.
type_specific_codegen.go:2038
↓ 3 callersMethodFloat32Slice
Float32Slice gets the value as a []float32, returns the optionalDefault value or nil if the value is not a []float32.
type_specific_codegen.go:1788
next →1–100 of 553, ranked by callers