I've been playing with Go for a few years now but I've never had to write a "production" app that I'd need to maintain for -hopefully- a long time.
Now I need to write a terminal app similar in essence to TaskWarrior and I wanted to try doing it in Go instead of my usual languages. I'd love to get some recommendations to go check some open source console based apps to learn some good practices on how to architect them.
Thanks!
评论:
monch0:
rabinito:Shameless plug: https://github.com/moncho/dry
I had not previous experience with go, so it might not be what you are looking for (a good idiomatic console), but it is terminal-based tool that works and is made with go.
https://github.com/peco/peco is a really nice and useful terminal tool built with go.
https://github.com/nsf/termbox-go is a termbox implementation written in go, its README contains a list of projects that might be worth checking.
interactiv_:Thanks! Dry looks great, btw
dlsniper:It passes go lint and go vet ? it has good code coverage with tests ? it is idiomatic. Go is bundled with a load of console apps already , including go's own compiler. They are all written in Go and are console apps. You want something idiomatic look at these ,they are written by the go team.
rabinito:Please don't give this as an advice to anyone. It's not what idiomatic means nor it will ever be. I can write horrible code that passes the above criteria.
Absolutely. But he has a good point about looking at go's own tools sources. I somehow missed that. Thanks!
