mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: Add go-github-com-rs-xid.
* gnu/packages/golang-web.scm (go-github-com-rs-xid): New variable. Change-Id: I79477d9f5166ff84a9ef957c9bf15506849399aa
This commit is contained in:
parent
8861d9e1d0
commit
37284823a4
1 changed files with 36 additions and 0 deletions
|
@ -4959,6 +4959,42 @@ (define-public go-github-com-rs-cors
|
|||
@url{http://www.w3.org/TR/cors/,http://www.w3.org/TR/cors/}.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public go-github-com-rs-xid
|
||||
(package
|
||||
(name "go-github-com-rs-xid")
|
||||
(version "1.6.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/rs/xid")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32 "0dck1girg54kgwjms0vsizaxasc8rj6pby4rlz7m07xffa3pp45c"))))
|
||||
(build-system go-build-system)
|
||||
(arguments
|
||||
(list
|
||||
#:import-path "github.com/rs/xid"))
|
||||
(home-page "https://github.com/rs/xid")
|
||||
(synopsis "Globally Unique ID Generator")
|
||||
(description
|
||||
"Package xid is a globally unique id generator suited for web scale.
|
||||
Features:
|
||||
@itemize
|
||||
@item zize: 12 bytes (96 bits), smaller than UUID, larger than snowflake
|
||||
@item base32 hex encoded by default (20 chars when transported as printable
|
||||
string, still sortable)
|
||||
@item mon configured, you don't need set a unique machine and/or data center
|
||||
id
|
||||
@item k-ordered
|
||||
@item embedded time with 1 second precision
|
||||
@item unicity guaranteed for 16,777,216 (24 bits) unique ids per second and
|
||||
per host/process
|
||||
@item lock-free (i.e.: unlike UUIDv1 and v2)
|
||||
@end itemize")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public go-github-com-sherclockholmes-webpush-go
|
||||
(package
|
||||
(name "go-github-com-sherclockholmes-webpush-go")
|
||||
|
|
Loading…
Reference in a new issue