From 8bc99976b943a62c0b2af602984de849bc6250e3 Mon Sep 17 00:00:00 2001 From: flamingo Date: Mon, 22 Jun 2020 13:49:54 +0800 Subject: [PATCH 1/2] Update README.md,Fix Windows Install Kratos Windows Install Kratos,Change GO111MODULE to On,Please use 'go env -w GO111MODULE=on' Fix: GO111MODULE=on -> go env -w GO111MODULE=on --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 73184b86a..7e2b441dc 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,15 @@ Go version>=1.13 ### Installation ```shell +# Unix/Linux GO111MODULE=on && go get -u github.com/go-kratos/kratos/tool/kratos + +# Windows (Powershell) +go env GO111MODULE=on ; go get -u github.com/go-kratos/kratos/tool/kratos + +# Windows (CMD) +go env GO111MODULE=on && go get -u github.com/go-kratos/kratos/tool/kratos + cd $GOPATH/src kratos new kratos-demo ``` From ee8d2985ff761acefaa942a391cc26c0152c191a Mon Sep 17 00:00:00 2001 From: flamingo Date: Mon, 19 Oct 2020 12:50:55 +0800 Subject: [PATCH 2/2] Update README.md add -w params,change default setting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e2b441dc..d85ad39a4 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,10 @@ Go version>=1.13 GO111MODULE=on && go get -u github.com/go-kratos/kratos/tool/kratos # Windows (Powershell) -go env GO111MODULE=on ; go get -u github.com/go-kratos/kratos/tool/kratos +go env -w GO111MODULE=on ; go get -u github.com/go-kratos/kratos/tool/kratos # Windows (CMD) -go env GO111MODULE=on && go get -u github.com/go-kratos/kratos/tool/kratos +go env -w GO111MODULE=on && go get -u github.com/go-kratos/kratos/tool/kratos cd $GOPATH/src kratos new kratos-demo