修改 readme mod

master
dengsgo 2020-03-05 15:37:36 +08:00
parent 29fc62de90
commit b1c5f7da39
3 changed files with 10 additions and 8 deletions

View File

@ -22,7 +22,7 @@ fileboy文件变更监听通知系统使用 Go 编写。
## 编译环境
go version 1.13
Go >= 1.13
## 更新日志
@ -40,10 +40,12 @@ Gitee: [dowmload v1.15](https://gitee.com/dengsgo/fileboy/releases)
### 源码编译
clone 该项目,进入主目录,运行命令:
```shell
```bash
## 确保本地 Go 启用 modules
export GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
## 安装依赖
go get -u gopkg.in/fsnotify/fsnotify.v1
go get -u gopkg.in/yaml.v2
go get -u
## 编译
go build
## 运行

View File

@ -22,7 +22,7 @@ For Hot Reload scenarios (typically for developing go projects without having to
## COMPILE
go version 1.13
Go >= 1.13
## CHANGELOG
@ -42,9 +42,9 @@ Download the compiled binary file of the corresponding platform, rename it `file
Clone project, enter the project directory, run the command:
```shell
export GO111MODULE=on
## installation dependency
go get-u gopkg.in/fsnotify/fsnotify.v1
go get-u gopkg.in/yaml.v2
go get-u
## compile
go build
## run