Fix null snowflakes being formatted as 18446744073709551615

This commit is contained in:
Matthew Penner 2020-05-13 15:51:26 -06:00
parent 3aa92c8f05
commit 592d2f7172
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ func (s Snowflake) MarshalJSON() ([]byte, error) {
}
func (s Snowflake) String() string {
if s == NullSnowflake {
return ""
}
return strconv.FormatUint(uint64(s), 10)
}