Skip to content

zhouboyi1998/note-gin

Repository files navigation

📔 note-gin

📖 语言

简体中文 | English

⌛ 开始

项目配置

  • 1:配置 Global GOPATH & Project GOPATH
  • 2:配置 Environment
    • GOPROXY=https://goproxy.cn,direct
    • GOFLAGS=-buildvcs=false
    • ENVCONFIG=dev

安装依赖

go mod tidy

编译成可执行文件

go build main.go

🐳 Docker

Go 代码编译成 Linux 可执行文件

set GOOS=linux

set GOARCH=amd64

go build main.go

Docker 构建

docker build -t note-gin .

Docker 运行

docker run -d -p 18091:18091 --name note-gin note-gin

📜 开源协议

MIT License Copyright (c) 2022 周博义

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published