litter
valast
litter | valast | |
---|---|---|
4 | 3 | |
1,491 | 303 | |
0.5% | 1.0% | |
0.0 | 2.0 | |
8 months ago | 9 months ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 or later |
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
-
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.
valast
- TIL: panic(spew.Sdump(myVar))
-
autogold v2.0.0 - automatically update your Go tests
Passing any value your test got - autogold will format that value in Go syntax and write a testdata/.golden file with what the value was. If the contents on disk are different than what your test produces, the test will fail and you'll get a nice (now colored) diff explaining the difference. If you like the change, you can run go test ./... -update and it'll automatically update the .golden files on disk to match what your test actually produced.
- Convert Go values to their AST
What are some alternatives?
spew - Implements a deep pretty printer for Go data structures to aid in debugging
gotype - Golang source code parsing, usage like reflect package
spew - Implements a deep pretty printer for Go data structures to aid in debugging
gut/yos - 🍱 yet another collection of go utilities & tools
pretty - Pretty printing for Go values
go-auto-commenter - A go tool to add comments automatically on all the exported functions in a go project
utter - Implements a deep pretty printer for Go data structures to ease data snapshot creation
autogold - Automatically update your Go tests
go-parsing - A Multi-Package Go Repo Focused on Text Parsing, with Lexers, Parsers, and Related Utils
reflections - High level abstractions over the Go reflect library
csaf_distribution - Tools to download or provide CSAF (Common Security Advisory Framework) documents.
dot - Dot: A powerful Go package simplifying navigation and manipulation of complex data structures via dot-separated paths. Features include insertion into struct fields, maps, arrays, slices, and channels, along with robust error handling and support for diverse map keys.