truthy
Package truthy provides truthy condition testing with Go generics (by earthboundkid)
gojq
JSON query in Golang (by elgs)
truthy | gojq | |
---|---|---|
6 | 1 | |
33 | 191 | |
- | - | |
0.0 | 4.0 | |
4 months ago | 11 months ago | |
Go | Go | |
MIT License | GNU General Public License v3.0 or later |
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.
truthy
Posts with mentions or reviews of truthy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-24.
-
What are your strategies to prevent nil pointers errors in your code base?
I personally always make sure that, if I have a function that creates the struct, I define all of the fields. When I don't a) have control over that or b) have a function to init the struct, I typically end up using a new package called truthy that is built on generics and tells me the truthy value of the variable, kind of like Boolean(value) in javascript.
-
What annoys you about Go?
They didn't have a ternary. ;-)
- Fun with Go generics: a package to add truthy conditionals
- Using generics to create truthy condition testing helpers
- truthy condition testing using Go generics
-
Three Things Go Needs Right Now More Than Generics
If you have generics, you don’t need ? because you can write truthy.Cond(cond, ifVal, elseVal) instead.
gojq
Posts with mentions or reviews of gojq.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-26.
What are some alternatives?
When comparing truthy and gojq you can also consider the following projects:
go-cmp - Package for comparing Go values in tests
csvtk - A cross-platform, efficient and practical CSV/TSV toolkit in Golang
cgscript
xferspdy - Xferspdy provides binary diff and patch library in golang. [Mentioned in Awesome Go, https://github.com/avelino/awesome-go]
JSON-to-Go - Translates JSON into a Go type in your browser instantly (original)
fastlz - Wrap over FastLz for GoLang
windigo - Windows API and GUI in idiomatic Go.
gofuzz - Fuzz testing for go.
grequests - A Go "clone" of the great and famous Requests library
delve - Delve is a debugger for the Go programming language.
usql - Universal command-line interface for SQL databases