Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/emvi/hide
/ functions
Functions
27 in github.com/emvi/hide
⨍
Functions
27
◇
Types & classes
4
↓ 3 callers
Function
FromString
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 callers
Method
Value
Value implements the driver Valuer interface.
id.go:33
↓ 2 callers
Method
Decode
([]byte)
hash.go:8
↓ 2 callers
Method
Encode
(ID)
hash.go:7
↓ 2 callers
Method
MarshalJSON
MarshalJSON implements the encoding json interface.
id.go:42
↓ 2 callers
Function
ToString
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 callers
Method
UnmarshalJSON
UnmarshalJSON implements the encoding json interface.
id.go:57
↓ 2 callers
Method
newHash
Creates a new hashids.HashID object to encode/decode IDs.
hashid.go:62
↓ 1 callers
Function
NewHashID
NewHashID creates a new HashID with given salt and minimum hash length.
hashid.go:15
↓ 1 callers
Method
Scan
Scan implements the Scanner interface.
id.go:16
↓ 1 callers
Function
UseHash
UseHash sets the hide.Hash used to marshal/unmarshal hide.ID to/from JSON. hide.HashID is used by default.
hash.go:13
Method
Decode
Decode implements the hide.Hash interface.
hashid.go:37
Method
Encode
Encode implements the hide.Hash interface.
hashid.go:20
Function
TestFromString
(t *testing.T)
util_test.go:7
Function
TestFromStringEmpty
(t *testing.T)
util_test.go:17
Function
TestMarshalID
(t *testing.T)
id_test.go:14
Function
TestMarshalIDStruct
(t *testing.T)
id_test.go:62
Function
TestMarshalUnmarshalMatch
(t *testing.T)
id_test.go:43
Function
TestNull
(t *testing.T)
id_test.go:119
Function
TestScan
(t *testing.T)
id_test.go:91
Function
TestToString
(t *testing.T)
util_test.go:23
Function
TestToStringNull
(t *testing.T)
util_test.go:29
Function
TestUnmarshalID
(t *testing.T)
id_test.go:28
Function
TestUnmarshalIDStruct
(t *testing.T)
id_test.go:76
Function
TestUnmarshalNull
(t *testing.T)
id_test.go:135
Function
TestValue
(t *testing.T)
id_test.go:104
Function
init
()
init.go:3