Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLSA Go releaser

GOCUID2

Go port of CUID2 unique identifier from studying JavaScript and Java implemenations.

About the project

This is my attempt at writing a CUID2 compliant id generator for Go.

Status

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.

See also

Getting started

Below we describe the conventions or tools specific to golang project.

Layout

├── .gitignore
├── cuid2.go
├── cuid2_test.go
├── go.mod
├── go.sum
├── LICENSE
├── README.md

A brief description of the layout:

  • .gitignore varies per project, but all projects need to ignore bin directory.
  • .cuid2.go is the package.
  • .cuid2_test.go is the tests I created for the package.

Notes

  • 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.

About

Go port of CUID2 unique identifier from studying JavaScript and Java implemenations.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages