options

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldInfo

type FieldInfo struct {
	Name string
	Type string
}

type Generator

type Generator struct {
	StructInfo *StructInfo

	Found bool
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) GenerateCodeByTemplate

func (g *Generator) GenerateCodeByTemplate()

func (*Generator) GeneratingOptions

func (g *Generator) GeneratingOptions()

func (*Generator) OutputToFile

func (g *Generator) OutputToFile()

func (*Generator) SetMod added in v0.3.0

func (g *Generator) SetMod(mode string)

func (*Generator) SetOutPath

func (g *Generator) SetOutPath(outPath *string)

type StructInfo

type StructInfo struct {
	PackageName    string
	StructName     string
	NewStructName  string
	Fields         []FieldInfo
	OptionalFields []FieldInfo
	GenericParams  []FieldInfo

	Imports []string
}

Jump to

Keyboard shortcuts

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