guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/34: gnu: Add go-github-com-davecgh-go-spew.


From: Pierre Neidhardt
Subject: 09/34: gnu: Add go-github-com-davecgh-go-spew.
Date: Wed, 24 Oct 2018 06:28:50 -0400 (EDT)

ambrevar pushed a commit to branch master
in repository guix.

commit 6a95e3a3a4c97f20b66483b6bd7cac82ddfa0497
Author: Pierre Neidhardt <address@hidden>
Date:   Wed Oct 24 11:07:38 2018 +0200

    gnu: Add go-github-com-davecgh-go-spew.
    
    * gnu/packages/golang.scm (go-github-com-davecgh-go-spew): New variable.
---
 gnu/packages/golang.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 6c8754b..2bea557 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2592,3 +2592,43 @@ generation features.  This code generation is used to 
achieve:
       (description "A simple alternative to rcrowley's @command{go-metrics}
 that's a lot faster (and only does simple bandwidth metrics).")
       (license license:expat))))
+
+(define-public go-github-com-davecgh-go-spew
+  (let ((commit "d8f796af33cc11cb798c1aaeb27a4ebc5099927d")
+        (revision "0"))
+    (package
+      (name "go-github-com-davecgh-go-spew")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/davecgh/go-spew.git";)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "19z27f306fpsrjdvkzd61w1bdazcdbczjyjck177g33iklinhpvx"))))
+      (build-system go-build-system)
+      (arguments
+       '(#:unpack-path "github.com/davecgh/go-spew"
+         #:import-path "github.com/davecgh/go-spew/spew"))
+      (home-page "https://github.com/davecgh/go-spew";)
+      (synopsis "Deep pretty printer for Go data structures to aid in 
debugging")
+      (description "Package @command{spew} implements a deep pretty printer
+for Go data structures to aid in debugging.
+
+A quick overview of the additional features spew provides over the built-in 
printing facilities for Go data types are as follows:
+
address@hidden
address@hidden Pointers are dereferenced and followed.
address@hidden Circular data structures are detected and handled properly.
address@hidden Custom Stringer/error interfaces are optionally invoked, 
including on
+unexported types.
address@hidden Custom types which only implement the Stringer/error interfaces 
via a
+pointer receiver are optionally invoked when passing non-pointer variables.
address@hidden Byte arrays and slices are dumped like the hexdump -C command 
which
+includes offsets, byte values in hex, and ASCII output (only when using Dump
+style).
address@hidden itemize\n")
+      (license license:isc))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]