From b1c5f7da392dcc3a13b442b93a63f119063ae50c Mon Sep 17 00:00:00 2001 From: dengsgo Date: Thu, 5 Mar 2020 15:37:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20readme=20mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- README.md | 10 ++++++---- README_EN.md | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c1b5467..68ac466 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ # make build-start-mac 编译+启动 init: - go get -u + go get -u build-mac: ;@echo "编译-mac版"; CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags "-s -w" -o ./bin/fileboy-darwin-amd64.bin diff --git a/README.md b/README.md index ec7a86a..5e18197 100644 --- a/README.md +++ b/README.md @@ -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 ## 运行 diff --git a/README_EN.md b/README_EN.md index cb4942b..3575f7c 100644 --- a/README_EN.md +++ b/README_EN.md @@ -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