You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .idea | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| go.mod | 3 years ago | |
| go.sum | 3 years ago | |
| main.go | 3 years ago | |
| router.go | 3 years ago | |
README.md
basic
Goland->preferences->go->go modules->enable integration
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
go get -u github.com/gin-gonic/gin
go mod tidy
run
go build
./backend
compile
GOOS=linux GOARCH=amd64 go build -o main