Documentation
¶
Index ¶
- type GoGenerator
- func (g *GoGenerator) Description() string
- func (g *GoGenerator) Generate(opts openapigenerator.GenerateOpts) error
- func (g *GoGenerator) Id() string
- func (g *GoGenerator) IsPrimitiveType(input string) bool
- func (g *GoGenerator) PostProcessType(codeType openapigenerator.CodeType) openapigenerator.CodeType
- func (g *GoGenerator) PostProcessing(outputDir string) error
- func (g *GoGenerator) TemplateData(opts openapigenerator.TemplateDataOpts) (openapigenerator.DocumentModel, error)
- func (g *GoGenerator) ToClassName(name string) string
- func (g *GoGenerator) ToCodeType(schema *base.Schema, schemaType openapigenerator.CodeTypeSchemaType, ...) (openapigenerator.CodeType, error)
- func (g *GoGenerator) ToConstantName(name string) string
- func (g *GoGenerator) ToFunctionName(name string) string
- func (g *GoGenerator) ToParameterName(name string) string
- func (g *GoGenerator) ToPropertyName(name string) string
- func (g *GoGenerator) TypeToImport(iType openapigenerator.CodeType) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoGenerator ¶
type GoGenerator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator() *GoGenerator
func (*GoGenerator) Description ¶
func (g *GoGenerator) Description() string
func (*GoGenerator) Generate ¶
func (g *GoGenerator) Generate(opts openapigenerator.GenerateOpts) error
func (*GoGenerator) Id ¶
func (g *GoGenerator) Id() string
func (*GoGenerator) IsPrimitiveType ¶
func (g *GoGenerator) IsPrimitiveType(input string) bool
func (*GoGenerator) PostProcessType ¶
func (g *GoGenerator) PostProcessType(codeType openapigenerator.CodeType) openapigenerator.CodeType
func (*GoGenerator) PostProcessing ¶
func (g *GoGenerator) PostProcessing(outputDir string) error
func (*GoGenerator) TemplateData ¶
func (g *GoGenerator) TemplateData(opts openapigenerator.TemplateDataOpts) (openapigenerator.DocumentModel, error)
func (*GoGenerator) ToClassName ¶
func (g *GoGenerator) ToClassName(name string) string
func (*GoGenerator) ToCodeType ¶
func (g *GoGenerator) ToCodeType(schema *base.Schema, schemaType openapigenerator.CodeTypeSchemaType, required bool) (openapigenerator.CodeType, error)
func (*GoGenerator) ToConstantName ¶
func (g *GoGenerator) ToConstantName(name string) string
func (*GoGenerator) ToFunctionName ¶
func (g *GoGenerator) ToFunctionName(name string) string
func (*GoGenerator) ToParameterName ¶
func (g *GoGenerator) ToParameterName(name string) string
func (*GoGenerator) ToPropertyName ¶
func (g *GoGenerator) ToPropertyName(name string) string
func (*GoGenerator) TypeToImport ¶
func (g *GoGenerator) TypeToImport(iType openapigenerator.CodeType) string
Click to show internal directories.
Click to hide internal directories.