Skip to content

Commit

Permalink
docs: replace go get with go install (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrEEpy committed May 26, 2022
1 parent b027708 commit b1edf76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -35,8 +35,8 @@ write a lot of boilerplate code to perform all the marshalling and unmarshalling
into objects which match the OpenAPI 3.0 definition. The code generator in this
directory does a lot of that for you. You would run it like so:

go get github.com/deepmap/oapi-codegen/cmd/oapi-codegen
oapi-codegen petstore-expanded.yaml > petstore.gen.go
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@latest
oapi-codegen petstore-expanded.yaml > petstore.gen.go

Let's go through that `petstore.gen.go` file to show you everything which was
generated.
Expand Down

0 comments on commit b1edf76

Please sign in to comment.