package
Version:
v0.0.0-...-54d5358
Opens a new window with list of versions in this module.
Published: Mar 31, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package snowflake provides a Mastodon compatible Snowflake ID generator.
ID is a Mastodon compatible Snowflake ID.
TODO use ID type instead of uint64 in the codebase.
Now returns the current time as a Snowflake ID.
TimeToID converts a time.Time to a Snowflake ID.
ToTime converts a Snowflake ID to a time.Time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.