Go Dev Environment
Install Go
by scoop
scoop install go
check version
go version
set proxy (optional)
sh
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
- install vscode extension
Install Go Tools
install nunu (cli tool)
go install github.com/go-nunu/nunu@latest
Init Project
create project
nunu new project
create component
nunu create handler user
nunu create service user
nunu create repository user
nunu create model user
or
nunu create all user
Run Project
run project
nunu run
Compile wire.go
compile wire.go
nunu wire