Open utterances-bot opened 1 year ago
I think something changed since go 1.17, because the init command didn't work for me (go 1.20). Fortunately, dropping the protocol worked fine:
go mod init https://github.com/ThorstenHans/stringer # bad
go mod init github.com/ThorstenHans/stringer # good
no idea what's up here, but the good one worked just fine. Thank you for this tutorial :)
Thanks @arturtamborski I'll update the post.
Let's build a CLI in Go with Cobra · Thorsten Hans' blog
Learn how to build custom CLIs in Go with Cobra. Dive into the - perhaps - most popular Go-module when it comes to build CLIs. Craft your first CLI now.
https://www.thorsten-hans.com/lets-build-a-cli-in-go-with-cobra/