Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/stretchr/objx
/ functions
Functions
553 in github.com/stretchr/objx
⨍
Functions
553
◇
Types & classes
7
↓ 800 callers
Method
Equal
(t *testing.T, expected, actual interface{}, msgAndArgs ...interface{})
std_assert_test.go:41
↓ 600 callers
Method
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 insi
accessors.go:45
↓ 65 callers
Method
Data
Data returns the raw data contained by this Value
value.go:16
↓ 56 callers
Method
True
(t *testing.T, value bool, msgAndArgs ...interface{})
std_assert_test.go:112
↓ 50 callers
Method
Panics
(t *testing.T, f func(), msgAndArgs ...interface{})
std_assert_test.go:172
↓ 46 callers
Function
New
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 callers
Method
MustInterSlice
MustInterSlice gets the value as a []interface{}. Panics if the object is not a []interface{}.
type_specific_codegen.go:41
↓ 33 callers
Method
Nil
(t *testing.T, object interface{}, msgAndArgs ...interface{})
std_assert_test.go:83
↓ 28 callers
Method
Str
* 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 callers
Method
String
String returns the value always as a string
value.go:21
↓ 23 callers
Method
MustObjxMapSlice
MustObjxMapSlice gets the value as a [](Map). Panics if the object is not a [](Map).
type_specific.go:237
↓ 23 callers
Method
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
accessors.go:60
↓ 22 callers
Method
MustMSISlice
MustMSISlice gets the value as a []map[string]interface{}. Panics if the object is not a []map[string]interface{}.
type_specific.go:57
↓ 21 callers
Method
Error
(t *testing.T, err error, msgAndArgs ...interface{})
std_assert_test.go:154
↓ 18 callers
Method
StringSlice
StringSlice returns the value always as a []string
value.go:58
↓ 17 callers
Method
NotNil
(t *testing.T, object interface{}, msgAndArgs ...interface{})
std_assert_test.go:98
↓ 14 callers
Function
MustFromJSON
****** Conversion Constructors MustFromJSON creates a new Map containing the data specified in the jsonString. Panics if the JSON is invalid.
map.go:86
↓ 13 callers
Method
Has
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 callers
Method
MustBoolSlice
MustBoolSlice gets the value as a []bool. Panics if the object is not a []bool.
type_specific_codegen.go:166
↓ 12 callers
Method
MustFloat32Slice
MustFloat32Slice gets the value as a []float32. Panics if the object is not a []float32.
type_specific_codegen.go:1801
↓ 12 callers
Method
MustFloat64Slice
MustFloat64Slice gets the value as a []float64. Panics if the object is not a []float64.
type_specific_codegen.go:1926
↓ 12 callers
Method
MustInt16Slice
MustInt16Slice gets the value as a []int16. Panics if the object is not a []int16.
type_specific_codegen.go:676
↓ 12 callers
Method
MustInt32Slice
MustInt32Slice gets the value as a []int32. Panics if the object is not a []int32.
type_specific_codegen.go:801
↓ 12 callers
Method
MustInt64Slice
MustInt64Slice gets the value as a []int64. Panics if the object is not a []int64.
type_specific_codegen.go:926
↓ 12 callers
Method
MustInt8Slice
MustInt8Slice gets the value as a []int8. Panics if the object is not a []int8.
type_specific_codegen.go:551
↓ 12 callers
Method
MustIntSlice
MustIntSlice gets the value as a []int. Panics if the object is not a []int.
type_specific_codegen.go:426
↓ 12 callers
Method
MustStrSlice
MustStrSlice gets the value as a []string. Panics if the object is not a []string.
type_specific_codegen.go:291
↓ 12 callers
Method
MustUint16Slice
MustUint16Slice gets the value as a []uint16. Panics if the object is not a []uint16.
type_specific_codegen.go:1301
↓ 12 callers
Method
MustUint32Slice
MustUint32Slice gets the value as a []uint32. Panics if the object is not a []uint32.
type_specific_codegen.go:1426
↓ 12 callers
Method
MustUint64Slice
MustUint64Slice gets the value as a []uint64. Panics if the object is not a []uint64.
type_specific_codegen.go:1551
↓ 12 callers
Method
MustUint8Slice
MustUint8Slice gets the value as a []uint8. Panics if the object is not a []uint8.
type_specific_codegen.go:1176
↓ 12 callers
Method
MustUintSlice
MustUintSlice gets the value as a []uint. Panics if the object is not a []uint.
type_specific_codegen.go:1051
↓ 12 callers
Method
ObjxMapSlice
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 callers
Method
fail
(t *testing.T, msg string, msgAndArgs ...interface{})
std_assert_test.go:17
↓ 12 callers
Method
fail
(t *testing.T, msg string, msgAndArgs ...interface{})
std_assert_test.go:26
↓ 11 callers
Method
MustComplex128Slice
MustComplex128Slice gets the value as a []complex128. Panics if the object is not a []complex128.
type_specific_codegen.go:2176
↓ 11 callers
Method
MustComplex64Slice
MustComplex64Slice gets the value as a []complex64. Panics if the object is not a []complex64.
type_specific_codegen.go:2051
↓ 11 callers
Method
MustUintptrSlice
MustUintptrSlice gets the value as a []uintptr. Panics if the object is not a []uintptr.
type_specific_codegen.go:1676
↓ 11 callers
Method
NoError
(t *testing.T, err error, msgAndArgs ...interface{})
std_assert_test.go:140
↓ 10 callers
Method
False
(t *testing.T, value bool, msgAndArgs ...interface{})
std_assert_test.go:126
↓ 8 callers
Method
Int
* 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 callers
Function
MSI
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 callers
Method
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{}.
type_specific.go:34
↓ 7 callers
Function
FromJSON
FromJSON creates a new Map containing the data specified in the jsonString. Returns an error if the JSON is invalid.
map.go:110
↓ 7 callers
Method
JSON
JSON converts the contained object to a JSON string representation
conversions.go:50
↓ 7 callers
Method
ObjxMap
* 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 callers
Method
EachMSI
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 callers
Method
EachObjxMap
EachObjxMap calls the specified callback for each object in the [](Map). Panics if the object is the wrong type.
type_specific.go:281
↓ 6 callers
Method
Len
(t *testing.T, object interface{}, length int, msgAndArgs ...interface{})
std_assert_test.go:229
↓ 6 callers
Method
MSI
MSI gets a map[string]interface{} (msi) representing the object.
map.go:17
↓ 6 callers
Function
SetURLValuesSliceKeySuffix
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 callers
Method
EachBool
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 callers
Method
EachComplex128
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 callers
Method
EachComplex64
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 callers
Method
EachFloat32
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 callers
Method
EachFloat64
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 callers
Method
EachInt
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 callers
Method
EachInt16
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 callers
Method
EachInt32
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 callers
Method
EachInt64
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 callers
Method
EachInt8
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 callers
Method
EachInter
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 callers
Method
EachStr
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 callers
Method
EachUint
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 callers
Method
EachUint16
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 callers
Method
EachUint32
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 callers
Method
EachUint64
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 callers
Method
EachUint8
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 callers
Method
EachUintptr
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 callers
Function
FromSignedBase64
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 callers
Method
InterSlice
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 callers
Method
IsMSISlice
IsMSISlice gets whether the object contained is a []map[string]interface{} or not.
type_specific.go:75
↓ 5 callers
Method
IsObjxMapSlice
IsObjxMapSlice gets whether the object contained is a [](Map) or not.
type_specific.go:254
↓ 5 callers
Method
Value
Value returns the internal value instance
map.go:25
↓ 4 callers
Method
Base64
Base64 converts the contained object to a Base64 string representation of the JSON string representation
conversions.go:131
↓ 4 callers
Method
Bool
* 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 callers
Method
Float32
* 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 callers
Method
Float64
* 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 callers
Function
FromBase64
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 callers
Method
Int16
* 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 callers
Method
Int32
* 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 callers
Method
Int64
* 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 callers
Method
Int8
* 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 callers
Method
IsNil
IsNil gets whether the data is nil or not.
tests.go:15
↓ 4 callers
Function
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 J
map.go:178
↓ 4 callers
Method
MustInt
MustInt gets the value as a int. Panics if the object is not a int.
type_specific_codegen.go:402
↓ 4 callers
Method
Uint
* 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 callers
Method
Uint16
* 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 callers
Method
Uint32
* 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 callers
Method
Uint64
* 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 callers
Method
Uint8
* 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 callers
Function
cleanUp
(v interface{})
conversions.go:102
↓ 4 callers
Function
getURLQueryMap
()
conversions_test.go:174
↓ 4 callers
Function
isNil
(i interface{})
std_assert_test.go:63
↓ 3 callers
Method
BoolSlice
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 callers
Method
Complex128
* 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 callers
Method
Complex128Slice
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 callers
Method
Complex64
* 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 callers
Method
Complex64Slice
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 callers
Method
Float32Slice
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