aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-09-15 20:56:51 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-11-09 21:33:50 +0000
commit4f0d45136ad62c57c601159711dcabfdc665eca2 (patch)
tree316397ba32307c66a4ae28e47ea4b0f65172ea78
parentc91547093ca9eea09274838ee66e570371449e7e (diff)
downloadguix-4f0d45136ad62c57c601159711dcabfdc665eca2.tar.gz
guix-4f0d45136ad62c57c601159711dcabfdc665eca2.zip
gnu: Add go-github-com-pquerna-ffjson.
* gnu/packages/golang-web.scm (go-github-com-pquerna-ffjson): New variable. Change-Id: I234a53a44e96b6db82261dea75a928ffab70723a
-rw-r--r--gnu/packages/golang-web.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index a14d05e4eb..9bfb01072b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -4980,6 +4980,36 @@ for Go.")
Caching.")
(license license:asl2.0)))
+(define-public go-github-com-pquerna-ffjson
+ (package
+ (name "go-github-com-pquerna-ffjson")
+ (version "0.0.0-20190930134022-aa0246cd15f7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pquerna/ffjson")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0mxmrvqmiinqhlaxncaqznxwfspf3p8bmg9vniz40dw5jpv24cwb"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/pquerna/ffjson"))
+ (home-page "https://github.com/pquerna/ffjson")
+ (synopsis "Faster JSON for Golang")
+ (description
+ "This package implements functinality to generate static
+@code{MarshalJSON} and @code{UnmarshalJSON} functions for structures in Go.
+The generated functions reduce the reliance upon runtime reflection to do
+serialization and are generally 2 to 3 times faster. In cases where
+@@code{ffjson} doesn't understand a Type involved, it falls back to
+@@code{encoding/json}, meaning it is a safe drop in replacement. By using
+@code{ffjson} your JSON serialization just gets faster with no additional code
+changes.")
+ (license license:asl2.0)))
+
(define-public go-github-com-puerkitobio-goquery
(package
(name "go-github-com-puerkitobio-goquery")