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

1 point

I must be grumpy because when I saw the blog post I thought it was kind of dumb when git clone gives you all you need and is universal. It felt a bit like a needless solution.

That being said, integration into gopls and IDE: yes please and thank you. 👍

permalink
report
reply
1 point

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.

permalink
report
reply

Golang

!golang@programming.dev

Create post

This is a community dedicated to the go programming language.

Useful Links:

Rules:

  • Posts must be relevant to Go
  • No NSFW content
  • No hate speech, bigotry, etc
  • Try to keep discussions on topic
  • No spam of tools/companies/advertisements
  • It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Community stats

  • 21

    Monthly active users

  • 148

    Posts

  • 153

    Comments