generators/go


id: generator-opts-client-go title: Config Options for gosidebar_label: go


OptionDescriptionValuesDefault
packageNameGo package name (convention: lowercase).openapi
packageVersionGo package version.1.0.0
hideGenerationTimestampHides the generation timestamp when files are generated.true
isGoSubmodulewhether the generated Go module is a submodulefalse
withGoCodegenCommentwhether to include Go codegen comment to disable Go Lint and collapse by default GitHub in PRs and diffsfalse
withXmlwhether 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
enumClassPrefixPrefix enum with class namefalse
prependFormOrBodyParametersAdd form or body parameters to the beginning of the parameter list.false