From 7ce2b569f6ad900884179bd77e683957538cccf5 Mon Sep 17 00:00:00 2001 From: Tobias Germer Date: Fri, 27 May 2022 01:37:57 +0200 Subject: [PATCH] docs: replace go get with go install (#588) 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 d7297bd18..86ce9c908 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.