openapi2go

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2025 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(fset *token.FileSet, doc v3.Document, config config.Config) ([]*ast.File, error)

Types

type Generator

type Generator struct {
	config.Config
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(doc v3.Document, config config.Config) *Generator

func (*Generator) Array

func (g *Generator) Array(schema *base.Schema, config *config.Field) (*ast.ArrayType, error)

func (*Generator) Bool

func (g *Generator) Bool() *ast.Ident

func (*Generator) Execute

func (g *Generator) Execute(fset *token.FileSet) ([]*ast.File, error)

func (*Generator) Field

func (g *Generator) Field(name string, schema *base.Schema, config *config.Field) (*ast.Field, error)

func (*Generator) FieldName

func (g *Generator) FieldName(name string, schema *base.Schema) *ast.Ident

func (*Generator) FieldType

func (g *Generator) FieldType(schema *base.Schema, config *config.Field) (ast.Expr, error)

func (*Generator) Fields

func (g *Generator) Fields(schema *base.Schema, config *config.Type) (*ast.FieldList, error)

func (*Generator) Type

func (g *Generator) Type(name string, schema *base.Schema, config *config.Type) (*ast.GenDecl, error)

func (*Generator) TypeName

func (g *Generator) TypeName(name string, schema *base.Schema) *ast.Ident

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL