lucsky / cuid Goto Github PK
View Code? Open in Web Editor NEWCollision-resistant hashes for the cloud, in Go
License: MIT License
Collision-resistant hashes for the cloud, in Go
License: MIT License
Is this something we want in this library? (I know I do)
I found that this project already supports Go modules. The latest version v1.2 committed on 29 Oct 2019, the last version which followed Semantic Versioning is v1.0.2, committed on 25 Aug 2018. If module user run "go get github.com/lucsky/cuid", the old version v1.0.2 will be required.
$go get github.com/lucsky/cuid
go: downloading github.com/lucsky/cuid v1.0.2
go: github.com/lucsky/cuid upgrade => v1.0.2
So, I propose this project to follow Semantic Versioning in future versions. For example, v1.0.1
, v2.0.0
, v3.1.0-alpha
, v3.1.0-beta.2
etc, so that other project can use tag in go.mod.
Hi,
I noticed at lines https://github.com/lucsky/cuid/blob/master/cuid.go#L27 and https://github.com/lucsky/cuid/blob/master/cuid.go#L58 you used time.Now().Unix(). I've seen in other examples people using time.Now().UnixNano(). Just curious as to why you chose not to use time.Now().UnixNano()?
Thanks
Frank
Due to security concerns (which also exist in database auto-increment ids, uuid/guid, and most other id standrads), the Cuid standard is now deprecated in favor of Cuid2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.