Skip to content

A Golang CLI tool for retrieving Quotes

License

Notifications You must be signed in to change notification settings

custompointofview/goqu

Repository files navigation

GoQu

A Golang CLI tool in search of quotes

Alt Text

Goal

I wanted a simple CLI tool to retrieve quotes based on preferences.

Current Sources

Additional source will be added in the near future

Packages used

Awesome packages used for CLI interactions and rendering:

Execution

  • Download application: GoQu Releases
  • Extract .zip if needed
  • Open terminal
  • Navigate to the downloaded/extracted directory
  • Execute ./goqu

Notes on implementation...

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.

About

A Golang CLI tool for retrieving Quotes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages