Commit Graph

7 Commits

Author SHA1 Message Date
fe4308607c feat(strings/uuidv7): add UUIDv7 generation (#10)
The UUID v7 format is a time-ordered random UUID. It uses a timestamp
with millisecond precision in the most significant bits, followed by
random data. This provides both uniqueness and chronological ordering,
making it ideal for database primary keys and situations where sorting
by creation time is desired.

References:
- https://uuid7.com/
- https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-04.html#name-uuid-version-7
2025-02-28 02:16:32 +00:00
16bd3ea3b9 feat(deps)!: upgrade to Go 1.17 and golanci-lint 1.64 (#5)
Upgrade to Go 1.17 and golangci-lint to 1.64, and fix the linting issues
that were found.

Also upgrade CI workflow actions to latest versions, and setup a test
matrix for relevant Go versions.

BREAKING CHANGE: Minimum Go version changed from 1.15 to 1.17.
2025-02-28 00:42:28 +00:00
164ccc497a feat(error): export error variables 2021-12-16 20:15:17 +00:00
825a3c18fb feat(strings): add UUID function to generate random RFC 4122 UUID v4 strings 2021-03-16 02:14:56 +00:00
ef9cb3a01d chore(docs): remove redundant RFC URLs
pkg.go.dev parses "RFC 1035, section 2.3.1" style text and links it to
the relevant place. So there's no need to also include a full URL for
documentation purposes.
2021-03-16 02:10:59 +00:00
16e33f432c docs(godoc): improve formatting of DNSLabel docs 2021-01-20 08:54:18 +00:00
597fe535d3 feat(rands): initial implementation 2021-01-20 02:58:03 +00:00