gioinit
Simple tool that spits out a minimal Gio application with some common
structure.
Simply execute and pipe the results to a file.
gioinit > main.go
Don't want to grab the source?
go run git.sr.ht/~jackmordaunt/gioinit@latest > main.go
If you provide a qualified path the tool will perform the initialization
ritual for you:
gioinit project git.sr.ht/~jackmordaunt/project
Is equivalent to:
mkdir project
cd project
go mod init git.sr.ht/~jackmordaunt/project
gioinit > main.go
go mod tidy
go run .
gioinit project
Is equivalent to:
mkdir project
cd project
go mod init project
gioinit > main.go
go mod tidy
go run .