Our great sponsors
-
Following up on this post about Snob, let's dive a bit deeper on how it was done and get a better overview from a development perspective.
-
Deployment is provided through GoReleaser. I suggest checking out its docs and then taking a look at these files in the project:
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
urfave/cli - A simple, fast, and fun package for building command line apps in Go;
-
printer.go - Handles printing (showing) information to the user. This is where fatih/color is being used, so we can print pretty information with colors.
-
config.go - Handles the configuration part (in our case, the key environment variable) with help from Viper;
-
.goreleaser.yml - GoReleaser config file. You might notice a brews section that keeps the Homebrew formula updated in nunogois/homebrew-brews - This is what makes installing through brew install nunogois/brews/snob possible;
Related posts
- Powerful template for CLI projects in Go 🐹
- I'm looking for a good alternativ to Viper
- [Happy] First mini project in Go (new go developer)
- Re-introducing "define" - A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.
- Re-introducing "define" - A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.