ParseString converts a string into a snowflake ID
(id string)
| 178 | |
| 179 | // ParseString converts a string into a snowflake ID |
| 180 | func 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 |
| 187 | func (f ID) Base2() string { |
searching dependent graphs…