MCPcopy Index your code

hub / github.com/emvi/hide / functions

Functions27 in github.com/emvi/hide

↓ 3 callersFunctionFromString
FromString returns a new ID from given hash by using the hasher or an error if it couldn't decode the hash.
util.go:4
↓ 3 callersMethodValue
Value implements the driver Valuer interface.
id.go:33
↓ 2 callersMethodDecode
([]byte)
hash.go:8
↓ 2 callersMethodEncode
(ID)
hash.go:7
↓ 2 callersMethodMarshalJSON
MarshalJSON implements the encoding json interface.
id.go:42
↓ 2 callersFunctionToString
ToString returns a new hash from given ID by using the hasher or an error if it couldn't encode the ID. If ID is 0, "null" will be returned.
util.go:10
↓ 2 callersMethodUnmarshalJSON
UnmarshalJSON implements the encoding json interface.
id.go:57
↓ 2 callersMethodnewHash
Creates a new hashids.HashID object to encode/decode IDs.
hashid.go:62
↓ 1 callersFunctionNewHashID
NewHashID creates a new HashID with given salt and minimum hash length.
hashid.go:15
↓ 1 callersMethodScan
Scan implements the Scanner interface.
id.go:16
↓ 1 callersFunctionUseHash
UseHash sets the hide.Hash used to marshal/unmarshal hide.ID to/from JSON. hide.HashID is used by default.
hash.go:13
MethodDecode
Decode implements the hide.Hash interface.
hashid.go:37
MethodEncode
Encode implements the hide.Hash interface.
hashid.go:20
FunctionTestFromString
(t *testing.T)
util_test.go:7
FunctionTestFromStringEmpty
(t *testing.T)
util_test.go:17
FunctionTestMarshalID
(t *testing.T)
id_test.go:14
FunctionTestMarshalIDStruct
(t *testing.T)
id_test.go:62
FunctionTestMarshalUnmarshalMatch
(t *testing.T)
id_test.go:43
FunctionTestNull
(t *testing.T)
id_test.go:119
FunctionTestScan
(t *testing.T)
id_test.go:91
FunctionTestToString
(t *testing.T)
util_test.go:23
FunctionTestToStringNull
(t *testing.T)
util_test.go:29
FunctionTestUnmarshalID
(t *testing.T)
id_test.go:28
FunctionTestUnmarshalIDStruct
(t *testing.T)
id_test.go:76
FunctionTestUnmarshalNull
(t *testing.T)
id_test.go:135
FunctionTestValue
(t *testing.T)
id_test.go:104
Functioninit
()
init.go:3