An open API service indexing awesome lists of open source software.

https://github.com/fs-frost/openapi2go

CLI tool to generate Go code from OpenAPI specifications.
https://github.com/fs-frost/openapi2go

codegen openapi

Last synced: 3 months ago
JSON representation

CLI tool to generate Go code from OpenAPI specifications.

Awesome Lists containing this project

README

          

# openapi2go

CLI tool to generate Go code from OpenAPI specifications.

- For servers:

- Structs with JSON tags
- Functions using [Gin](https://github.com/gin-gonic/gin) for HTTP interactions

- For clients:
- Structs with JSON tags

# Install

```sh
go install github.com/FS-Frost/openapi2go@latest
```

# Usage

```sh
openapi2go spec1.yml [specN.yml] outDir
```