Re:Bingo – The missing package manager for Go binaries (Home...
by hit8run on Sunday December 26, 2021 @04:01AM
(#29690828)
Maybe a bit off-topic but does someone know of a good code scaffold generator for go? Something like rails new, and rails generate?
[ Parent
| on HN ]
Re:Bingo – The missing package manager for Go binaries (Home...
by halpert on Sunday December 26, 2021 @10:02AM
(#29692861)
go mod init
touch main.go
Re:Bingo – The missing package manager for Go binaries (Home...
by tekstar on Sunday December 26, 2021 @09:33AM
(#29692651)
It really depends on what you want to scaffold, but I took a minimal approach and use:
https://github.com/boourns/scaffold - generates a SQL select/insert/update layer, currently specifically for SQLite.
https://github.com/boourns/go-gql-typescript-example - an example project using scaffold for the model layer, https://gqlgen.com to generate the graphql layer, and typescript.
This is my currently preferred stack. Currently in my second year of working on a 25k LOC project in this stack and it has scaled up to meet those demands.