From b01de2f08411db68d35c45aca03f9dc2efff9ebb Mon Sep 17 00:00:00 2001 From: Tobias Germer Date: Sat, 21 May 2022 11:32:54 +0200 Subject: [PATCH] docs: replace go get with go install see https://go.dev/doc/go-get-install-deprecation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0bf46d95b..38c5e70d8 100644 --- a/README.md +++ b/README.md @@ -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.