litter
Litter is a pretty printer library for Go data structures to aid in debugging and testing. (by sanity-io)
spew
Implements a deep pretty printer for Go data structures to aid in debugging (by davecgh)
litter | spew | |
---|---|---|
4 | 6 | |
1,491 | 5,864 | |
0.5% | - | |
0.0 | 0.0 | |
8 months ago | about 2 years ago | |
Go | Go | |
MIT License | ISC License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
litter
Posts with mentions or reviews of litter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-10.
-
TIL: panic(spew.Sdump(myVar))
I like litter, and I have a simple helper that is effectively:
-
The most helpful Go Packages
I prefer litter https://github.com/sanity-io/litter
-
Just released a maintained github.com/davecgh/go-spew/spew fork
You may also be interested in Litter, which grew out of frustrations with go-spew, and which is actively maintained. I'm one of the contributors.
-
Convert Go values to their AST
Looks like a lot like my project, Litter. Unlike Spew and the others mentioned in the readme, Litter does have a mode that produces valid Go syntax.
spew
Posts with mentions or reviews of spew.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-15.
-
Golang Middleware Doubt
Take the output of your statement and run it through https://github.com/davecgh/go-spew spew.Dump. It will not be what you expect. See if that helps. If not, ask more questions.
-
How do you iterate though nested structs and print them?
github.com/davecgh/go-spew
- The most helpful Go Packages
-
Yaml unmarshal into a third party package
Are the doubles quotes intented in your imports? ""[github.com/davecgh/go-spew/spew](https://github.com/davecgh/go-spew/spew)"
-
What are your favorite packages to use?
go-spew - god sent for debugging
What are some alternatives?
When comparing litter and spew you can also consider the following projects:
spew - Implements a deep pretty printer for Go data structures to aid in debugging
logrus - Structured, pluggable logging for Go.
pretty - Pretty printing for Go values
zap - Blazing fast, structured, leveled logging in Go.
utter - Implements a deep pretty printer for Go data structures to ease data snapshot creation
log - Structured logging package for Go.
go-parsing - A Multi-Package Go Repo Focused on Text Parsing, with Lexers, Parsers, and Related Utils
go-log - a golang log lib supports level and multi handlers
valast - Convert Go values to their AST
slf
csaf_distribution - Tools to download or provide CSAF (Common Security Advisory Framework) documents.
logger - Minimalistic logging library for Go.