Go port of CUID2 unique identifier from studying JavaScript and Java implemenations.
This is my attempt at writing a CUID2 compliant id generator for Go.
This project is in the "just got it working and looking for feedback" status.
I based my implemenation on the original paralleldrive JavaScript one and to cross reference some JS stuff I found slighly confusing As a former Java main for 30 years, I looked at the Java version I found.
Both are listed below.
- Original Implemenation of CUID2 in JavaScript
- Java version of CUID2 I cross referenced when porting the paralleldrive code
Below we describe the conventions or tools specific to golang project.
├── .gitignore
├── cuid2.go
├── cuid2_test.go
├── go.mod
├── go.sum
├── LICENSE
├── README.md
A brief description of the layout:
.gitignorevaries per project, but all projects need to ignorebindirectory..cuid2.gois the package..cuid2_test.gois the tests I created for the package.
- This looks to me to generate the same thing as the original paralleldrive JavaScript version.
- If it does not please tell my why in an issue.