diff --git a/snowflake.go b/snowflake.go index c857378..26da1fe 100644 --- a/snowflake.go +++ b/snowflake.go @@ -127,7 +127,7 @@ func (f ID) Step() int64 { // MarshalJSON returns a json byte array string of the snowflake ID. func (f ID) MarshalJSON() ([]byte, error) { - buff := make([]byte, 0, 2) + buff := make([]byte, 0, 22) buff = append(buff, '"') buff = strconv.AppendInt(buff, int64(f), 10) buff = append(buff, '"')