sharlatan pushed a commit to branch go-team
in repository guix.

commit 78f95bcf863f099e2bf3875627c2eef945ad7bbc
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Sep 14 23:23:14 2024 +0100

    gnu: Add go-github-com-rs-xid.
    
    * gnu/packages/golang-web.scm (go-github-com-rs-xid): New variable.
    
    Change-Id: I79477d9f5166ff84a9ef957c9bf15506849399aa
---
 gnu/packages/golang-web.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 01afd2011d..733ed9f5a7 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4907,6 +4907,42 @@ resource sharing,CORS} related requests as defined by
 @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")

Reply via email to