gojq
JSON query in Golang (by elgs)
truthy
Package truthy provides truthy condition testing with Go generics (by earthboundkid)
Our great sponsors
gojq | truthy | |
---|---|---|
1 | 6 | |
191 | 33 | |
- | - | |
4.0 | 0.0 | |
10 months ago | 4 months ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT 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.
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.
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.
What are some alternatives?
When comparing gojq and truthy you can also consider the following projects:
csvtk - A cross-platform, efficient and practical CSV/TSV toolkit in Golang
go-cmp - Package for comparing Go values in tests
xferspdy - Xferspdy provides binary diff and patch library in golang. [Mentioned in Awesome Go, https://github.com/avelino/awesome-go]
cgscript
fastlz - Wrap over FastLz for GoLang
JSON-to-Go - Translates JSON into a Go type in your browser instantly (original)
windigo - Windows API and GUI in idiomatic Go.
grequests - A Go "clone" of the great and famous Requests library
gofuzz - Fuzz testing for go.
delve - Delve is a debugger for the Go programming language.
usql - Universal command-line interface for SQL databases