Browse Source

增加 go generate 懒人模式

songzhibin97 3 years ago
parent
commit
aff5c425ca
1 changed files with 5 additions and 0 deletions
  1. 5 0
      server/main.go

+ 5 - 0
server/main.go

@@ -6,6 +6,11 @@ import (
 	"gin-vue-admin/initialize"
 )
 
+//go:generate go env -w GO111MODULE=on
+//go:generate go env -w GOPROXY=https://goproxy.cn,direct
+//go:generate go mod tidy
+//go:generate go mod download
+
 // @title Swagger Example API
 // @version 0.0.1
 // @description This is a sample Server pets