bwmarrin / snowflake

A simple to use Go (golang) package to generate or parse Twitter snowflake IDs
BSD 2-Clause "Simplified" License
2.98k stars 371 forks source link

UnmarshalJSON bug fix and added IsZero methods #31

Closed xc19 closed 1 year ago

xc19 commented 3 years ago
  1. UnmarshalJSON bug fix and optimization
  2. Added IsZero methods
bwmarrin commented 3 years ago

Can you elaborate a bit more on what this is fixing and what the optimization provides?

ssoroka commented 2 years ago

Looks like the bugfix is to catch "" and return no error. Not sure why the crc method is bundled into this.