Oapi-codegen: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=External= * https://github.com/deepmap/oapi-codegen =Internal= * Go OpenAPI =Overview=")
 
Line 4: Line 4:
* [[Go OpenAPI#Subjects|Go OpenAPI]]
* [[Go OpenAPI#Subjects|Go OpenAPI]]
=Overview=
=Overview=
=Installation=
Get the latest version from https://github.com/deepmap/oapi-codegen/tags
Then:
<syntaxhighlight lang='bash'>
go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.1.0
</syntaxhighlight>
The installation will place the package under <code>$GOPATH/pkg/mod/cache/download/github.com/deepmap</code> and <code>$GOPATH/pkg/mod/github.com/deepmap</code>, will compile the binary and place it under <code>~/go/bin</code>.

Revision as of 00:14, 26 January 2024

External

Internal

Overview

Installation

Get the latest version from https://github.com/deepmap/oapi-codegen/tags

Then:

go install github.com/deepmap/oapi-codegen/v2/cmd/oapi-codegen@v2.1.0

The installation will place the package under $GOPATH/pkg/mod/cache/download/github.com/deepmap and $GOPATH/pkg/mod/github.com/deepmap, will compile the binary and place it under ~/go/bin.