this post was submitted on 31 Jul 2023
20 points (91.7% liked)

Golang

2197 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
 

Today we published gonew, an experimental tool for instantiating new projects in Go from predefined templates.

$ go install golang.org/x/tools/cmd/gonew@latest

you are viewing a single comment's thread
view the rest of the comments
[–] BravoVictor@programming.dev 5 points 1 year ago

Interesting. I’ve never personally had too many issues with startup. I actually thought Golang already had something like this built-in with ‘go mod init’. Looks like i was wrong…

Having boilerplate does help.

Cobra CLI is pretty great if you will only be using your binary on the cli.