A Golang CLI tool in search of quotes
I wanted a simple CLI tool to retrieve quotes based on preferences.
Additional source will be added in the near future
- QuoteGarden: GitHub Repo
Awesome packages used for CLI interactions and rendering:
- Download application: GoQu Releases
- Extract
.zip
if needed - Open terminal
- Navigate to the downloaded/extracted directory
- Execute
./goqu
I've tried something new this time regarding error handling in Go, a more Pythonic approach as I treated errors like throwing exceptions.
Conclusion: the fact that this isn't idiomatic Go makes it a rather difficult to manage pattern. It doesn't seem like a good idea for the long term on a bigger project. The
return
statement is usually the issue, even though it's a far less hassle than handling the error every time it is returned from a function.