Ask HN: What is 2023 layout for Go project? 7 points by transportheap 3y ago ↗ HN rust has cargo to setup, python has poetry/pdm to start. both keep semi consistent project layouts. what does go have? seems nothing built in nor really clear from the golang website.
[–] chrisjj 3y ago ↗ Serious question. Why in the 21st C would any modern language require a "layout"? [–] runjake 3y ago ↗ It doesn't. OP is asking what's the "best practice" way to set up a Go project scaffold.
[–] runjake 3y ago ↗ It doesn't. OP is asking what's the "best practice" way to set up a Go project scaffold.
[–] codegeek 3y ago ↗ Not sure about layouts but look at this:https://autostrada.dev/The author alex edwards is top notch and I have found him to be a great teacher on how to build web apps in Go.
5 comments
[ 3.1 ms ] story [ 17.1 ms ] threadhttps://news.ycombinator.com/item?id=36046662
https://autostrada.dev/
The author alex edwards is top notch and I have found him to be a great teacher on how to build web apps in Go.
$ cd foo
$ go mod init example.com/foo
$ touch foo.go