command
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
openapi-codegen
Implementation of OpenAPI code generation in Go.
Supports OpenAPI 3.0.3.
Features
- Type-safe structs generation based on kin-openapi package
- HTTP Client generation based on resty package
Usage
go install github.com/mayocream/openapi-codegen@latest
Usage of openapi-codegen:
-t, --client-tpl string Path to client template file, e.g. client.tmpl
-o, --output string Output path for generated Go file (default ".")
-p, --package string Go package name (default "api")
-i, --spec string Path to OpenAPI spec file (default "openapi.yaml")
openapi-codegen -i openapi.yaml -o . -p api -t client.tmpl
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.