Bwmarrin Snowflake Versions Save

A simple to use Go (golang) package to generate or parse Twitter snowflake IDs

v0.3.0

5 years ago

Added parser funcs for all formats and tests for them.

v0.2.0

5 years ago

With the help of https://github.com/nishaad78 this library will now do monotonic time calculations where supported.

See https://github.com/bwmarrin/snowflake/pull/18

Also, again with help from https://github.com/nishaad78 the library is a bit faster. We're still on target of 243ns/op for standard snowflake format (allowing us to max out the format) but when using a larger number of bits for sequence number you can get the performance down to around 66ns/op. See https://github.com/bwmarrin/snowflake/pull/19

Thanks a lot https://github.com/nishaad78 for the help!

v0.1.0

5 years ago

Main change here is in commit https://github.com/bwmarrin/snowflake/commit/20ab5dc6a45e1c57b60936ea1d26f9c72d22ade9

Please note that at this point there are several global (non exported) variables that have been deprecated and 3 functions. Be prepared to modify your code should you rely on any of these functions.