Skip to content

Commit bd9e84c

Browse files
committed
docs: simplify go tool example
1 parent 2647a10 commit bd9e84c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ go get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
5656
From there, each invocation of `oapi-codegen` would be used like so:
5757

5858
```go
59-
//go:generate go tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config cfg.yaml ../../api.yaml
59+
//go:generate go tool oapi-codegen -config cfg.yaml ../../api.yaml
6060
```
6161

6262
## Prior to Go 1.24
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package api
22

3-
//go:generate go tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen -config cfg.yaml ../../api.yaml
3+
//go:generate go tool oapi-codegen -config cfg.yaml ../../api.yaml

0 commit comments

Comments
 (0)