assert
A simple assertion library using Go generics (by alecthomas)
pretty
Pretty printing for Go values (by kr)
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.
assert
Posts with mentions or reviews of assert.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-02.
-
Libraries you use most of your projects?
https://github.com/alecthomas/assert As an assertion library
- alecthomas/assert: A minimalist type-safe drop-in replacement for testify/require
pretty
Posts with mentions or reviews of pretty.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-02.
- Libraries you use most of your projects?
-
Just released a maintained github.com/davecgh/go-spew/spew fork
github.com/kr/pretty works well too. Less dependencies.
What are some alternatives?
When comparing assert and pretty you can also consider the following projects:
go-cmp - Package for comparing Go values in tests
litter - Litter is a pretty printer library for Go data structures to aid in debugging and testing.
be - The Go test helper for minimalists
backoff - ⏱ The exponential backoff algorithm in Go
genfuncs - Go 1.18+ polymorphic generic containers and functions.
pretty-compact - The Prettiest Printer
go-utils - Simple and performant utilies using Go generics inspired by JavaScript and Python
text-ldap - Parser and Printer for LDAP text data stream
gomodifytags - Go tool to modify struct field tags
versioninfo - Importable package that parses version info from debug.ReadBuildInfo().
pretty-types - A small pretty printing DSL for complex types.