internal

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandParser

type CommandParser interface {
	RegisterCommand(cmd *flag.FlagSet)
	Parse() error
}

CommandParser defines the interface for parsing command.

func NewCommandParserGroup

func NewCommandParserGroup(group []CommandParser) CommandParser

NewCommandParserGroup creates a new CommandParserGroup which wraps multiple CommandParser.

type CommandParserGroup

type CommandParserGroup struct {
	CommandParsers []CommandParser
	// contains filtered or unexported fields
}

CommandParserGroup wraps multiple CommandParser.

func (*CommandParserGroup) Parse

func (c *CommandParserGroup) Parse() error

Parse parses all CommandParser.

func (*CommandParserGroup) RegisterCommand

func (c *CommandParserGroup) RegisterCommand(cmd *flag.FlagSet)

RegisterCommand registers all CommandParser.

type ConfigPathParser

type ConfigPathParser struct {
	// contains filtered or unexported fields
}

func (*ConfigPathParser) Parse

func (t *ConfigPathParser) Parse() error

func (*ConfigPathParser) RegisterCommand

func (t *ConfigPathParser) RegisterCommand(cmd *flag.FlagSet)

type Function

type Function struct {
	// contains filtered or unexported fields
}

func (*Function) Name

func (f *Function) Name() string

func (*Function) Params added in v1.2.5

func (f *Function) Params() ast.ValueGroup

func (*Function) Results

func (f *Function) Results() ast.ValueGroup

func (*Function) String

func (f *Function) String() string

type FunctionBodyMaker

type FunctionBodyMaker struct {
	// contains filtered or unexported fields
}

func (*FunctionBodyMaker) Make

func (f *FunctionBodyMaker) Make() error

type FunctionGroup added in v1.2.5

type FunctionGroup []*Function

func (FunctionGroup) String added in v1.2.5

func (f FunctionGroup) String() string

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func (*Generator) Generate

func (g *Generator) Generate() (io.Reader, error)

func (*Generator) WriteTo added in v1.2.5

func (g *Generator) WriteTo(writer io.Writer) (int64, error)

WriteTo writes generated code to writer.

type ImplNameParser

type ImplNameParser struct {
	// contains filtered or unexported fields
}

func (*ImplNameParser) Parse

func (t *ImplNameParser) Parse() error

func (*ImplNameParser) RegisterCommand

func (t *ImplNameParser) RegisterCommand(cmd *flag.FlagSet)

type Implement

type Implement struct {
	// contains filtered or unexported fields
}

func (*Implement) Imports

func (i *Implement) Imports() astlite.ImportGroup

func (*Implement) Package

func (i *Implement) Package() string

func (*Implement) String

func (i *Implement) String() string

type NamespaceParser

type NamespaceParser struct {
	// contains filtered or unexported fields
}

func (*NamespaceParser) Parse

func (t *NamespaceParser) Parse() error

func (*NamespaceParser) RegisterCommand

func (t *NamespaceParser) RegisterCommand(cmd *flag.FlagSet)

type OutputPathParser

type OutputPathParser struct {
	// contains filtered or unexported fields
}

func (*OutputPathParser) Parse

func (t *OutputPathParser) Parse() error

func (*OutputPathParser) RegisterCommand

func (t *OutputPathParser) RegisterCommand(cmd *flag.FlagSet)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse() error

type TypeNameParser

type TypeNameParser struct {
	// contains filtered or unexported fields
}

func (*TypeNameParser) Parse

func (t *TypeNameParser) Parse() error

func (*TypeNameParser) RegisterCommand

func (t *TypeNameParser) RegisterCommand(cmd *flag.FlagSet)

Jump to

Keyboard shortcuts

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