Open Niofh opened 5 years ago
windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行:
mingw32-make start
也可以使用go命令直接运行:
cd gin-admin/cmd/server go build -o server ./server -c ../../configs/config.toml -m ../../configs/model.conf -swagger ../../internal/app/swagger
哪来的 cd gin-admin/cmd/server 目录?
入口文件为:cmd/server/main.go
,可以执行命令:
go run cmd/server/main.go -c ./configs/config.toml -m ./configs/model.conf -swagger ./internal/app/swagger
windows下没有make命令,可以选择安装mingw64软件包:链接:https://share.weiyun.com/5TR4VTx,然后将mingw64/bin目录放入PATH,执行:
也可以使用go命令直接运行: