doc: requires a version when current directory is not in a module (#244)

This commit is contained in:
Berserk 2022-11-14 20:52:29 +08:00 committed by GitHub
parent c8d47d5b4a
commit 0613417b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`),