optgen
subcommands
optgen | subcommands | |
---|---|---|
1 | 2 | |
14 | 740 | |
- | 2.0% | |
3.3 | 0.0 | |
11 months ago | over 1 year ago | |
Go | Go | |
Apache License 2.0 | Apache License 2.0 |
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.
optgen
-
How to start a Go project in 2023
Things I can't live without in a new Go project in no particular order:
- https://github.com/golangci/golangci-lint - meta-linter
- https://goreleaser.com - automate release workflows
- https://magefile.org - build tool that can version your tools
- https://github.com/ory/dockertest/v3 - run containers for e2e testing
- https://github.com/ecordell/optgen - generate functional options
- https://golang.org/x/tools/cmd/stringer - generate String()
- https://mvdan.cc/gofumpt - stricter gofmt
- https://github.com/stretchr/testify - test assertion library
- https://github.com/rs/zerolog - logging
- https://github.com/spf13/cobra - CLI framework
FWIW, I just lifted all the tools we use for https://github.com/authzed/spicedb
We've also written some custom linters that might be useful for other folks: https://github.com/authzed/spicedb/tree/main/tools/analyzers
subcommands
-
How to start a Go project in 2023
Cobra is just so… intense and complicated. Google's Subcommands is enough for 99.9% of projects I've worked on
- https://github.com/google/subcommands
-
CLI commands with google/subcommands
google/subcommands makes it a breeze. Let us see how.
What are some alternatives?
spicedb - Open Source, Google Zanzibar-inspired permissions database to enable fine-grained access control for customer applications
go - The Go programming language
entr - Run arbitrary commands when files change
goda - Go Dependency Analysis toolkit
goreleaser - Deliver Go binaries as fast and easily as possible
dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.