MCPcopy
hub / github.com/bwmarrin/snowflake / ParseString

Function ParseString

snowflake.go:180–184  ·  view source on GitHub ↗

ParseString converts a string into a snowflake ID

(id string)

Source from the content-addressed store, hash-verified

178
179// ParseString converts a string into a snowflake ID
180func ParseString(id string) (ID, error) {
181 i, err := strconv.ParseInt(id, 10, 64)
182 return ID(i), err
183
184}
185
186// Base2 returns a string base2 of the snowflake ID
187func (f ID) Base2() string {

Callers 1

TestStringFunction · 0.85

Calls 1

IDTypeAlias · 0.85

Tested by 1

TestStringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…