mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-06 18:45:23 +00:00
644f720db8
* [config-help] Sort all outputs
* Remove old/stale generator docs (these have been renamed previously)
* Sort config doc outputs, making it easier to find relevant info
* Fixes cliOptions duplicates
Erlang client/proper improperly set the version option as packageName
(causing duplicate for packageName).
The java and swift option removals are because the options are added in
parent classes, resulting in duplication of the options.
* Add --github-nested-index for generating docs/generators/README.md
* 📝 Regenerate generator docs
98 lines
2.4 KiB
Markdown
98 lines
2.4 KiB
Markdown
---
|
|
title: Config Options for go
|
|
sidebar_label: go
|
|
---
|
|
|
|
| Option | Description | Values | Default |
|
|
| ------ | ----------- | ------ | ------- |
|
|
|enumClassPrefix|Prefix enum with class name| |false|
|
|
|hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true|
|
|
|isGoSubmodule|whether the generated Go module is a submodule| |false|
|
|
|packageName|Go package name (convention: lowercase).| |openapi|
|
|
|packageVersion|Go package version.| |1.0.0|
|
|
|prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false|
|
|
|structPrefix|whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts| |false|
|
|
|withAWSV4Signature|whether to include AWS v4 signature support| |false|
|
|
|withGoCodegenComment|whether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffs| |false|
|
|
|withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false|
|
|
|
|
## IMPORT MAPPING
|
|
|
|
| Type/Alias | Imports |
|
|
| ---------- | ------- |
|
|
|
|
|
|
## INSTANTIATION TYPES
|
|
|
|
| Type/Alias | Instantiated By |
|
|
| ---------- | --------------- |
|
|
|
|
|
|
## LANGUAGE PRIMITIVES
|
|
|
|
<ul data-columns="2" style="list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto"><li>bool</li>
|
|
<li>byte</li>
|
|
<li>complex128</li>
|
|
<li>complex64</li>
|
|
<li>float32</li>
|
|
<li>float64</li>
|
|
<li>int</li>
|
|
<li>int32</li>
|
|
<li>int64</li>
|
|
<li>rune</li>
|
|
<li>string</li>
|
|
<li>uint</li>
|
|
<li>uint32</li>
|
|
<li>uint64</li>
|
|
</ul>
|
|
|
|
## RESERVED WORDS
|
|
|
|
<ul data-columns="2" style="list-style-type: disc;-webkit-columns:2;-moz-columns:2;columns:2;-moz-column-fill:auto;column-fill:auto"><li>bool</li>
|
|
<li>break</li>
|
|
<li>byte</li>
|
|
<li>case</li>
|
|
<li>chan</li>
|
|
<li>complex128</li>
|
|
<li>complex64</li>
|
|
<li>const</li>
|
|
<li>continue</li>
|
|
<li>default</li>
|
|
<li>defer</li>
|
|
<li>else</li>
|
|
<li>error</li>
|
|
<li>fallthrough</li>
|
|
<li>float32</li>
|
|
<li>float64</li>
|
|
<li>for</li>
|
|
<li>func</li>
|
|
<li>go</li>
|
|
<li>goto</li>
|
|
<li>if</li>
|
|
<li>import</li>
|
|
<li>int</li>
|
|
<li>int16</li>
|
|
<li>int32</li>
|
|
<li>int64</li>
|
|
<li>int8</li>
|
|
<li>interface</li>
|
|
<li>map</li>
|
|
<li>nil</li>
|
|
<li>package</li>
|
|
<li>range</li>
|
|
<li>return</li>
|
|
<li>rune</li>
|
|
<li>select</li>
|
|
<li>string</li>
|
|
<li>struct</li>
|
|
<li>switch</li>
|
|
<li>type</li>
|
|
<li>uint</li>
|
|
<li>uint16</li>
|
|
<li>uint32</li>
|
|
<li>uint64</li>
|
|
<li>uint8</li>
|
|
<li>uintptr</li>
|
|
<li>var</li>
|
|
</ul>
|