- Notifications
You must be signed in to change notification settings - Fork7
Every grain of sand on Earth has its own ID.
License
NotificationsYou must be signed in to change notification settings
aofei/sandid
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Every grain of sand on Earth has its own ID.
Note that the algorithm used to generate thesandid.SandID
mainly comefrom theUUID version 1. Some adjustmentswere made to enhance the efficiency of database insertion (seethis).
- Extremely easy to use
- Fixed length
- 16 bytes
- 22 characters
- 128-bit
- Huge capacity
- Up to 2e128
- URL safe
^[A-Za-z0-9-_]{22}$
- Encoding friendly
- Implemented
encoding.TextMarshaler
andencoding.TextUnmarshaler
- Implemented
encoding.BinaryMarshaler
andencoding.BinaryUnmarshaler
- Implemented
json.Marshaler
andjson.Unmarshaler
- Implemented
- SQL friendly
sandid.NullSandID
support- Implemented
sql.Scanner
anddriver.Valuer
- Zero third-party dependencies
Open your terminal and execute
$ go get github.com/aofei/sandid
done.
The only requirement is theGo, at least v1.13.
If you want to discuss SandID, or ask questions about it, simply post questionsor ideashere.
If you want to help build SandID, simply followthis to send pull requestshere.
This project is licensed under the MIT License.
License can be foundhere.
About
Every grain of sand on Earth has its own ID.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published