From 0613417b2ff3cfea2e12a0f69873a20ef305375b Mon Sep 17 00:00:00 2001 From: Berserk Date: Mon, 14 Nov 2022 20:52:29 +0800 Subject: [PATCH] doc: requires a version when current directory is not in a module (#244) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e128859..dbd3de1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ go get -u github.com/swaggo/swag/cmd/swag Starting in Go 1.17, installing executables with `go get` is deprecated. `go install` may be used instead: ```sh -go install github.com/swaggo/swag/cmd/swag +go install github.com/swaggo/swag/cmd/swag@latest ``` 3. Run the [Swag](https://github.com/swaggo/swag) at your Go project root path(for instance `~/root/go-peoject-name`),