codegen

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ActionName      = "codegen"
	ActionNameAlias = "cgen"
)

Variables

This section is empty.

Functions

func NewAction

func NewAction(cfg *config.Config) *action.Action

Types

type File

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

File holds a single parsed file and associated data.

type Generator

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

Generator holds the state of the analysis. Primarily used to buffer the output for format.Source.

func NewGenerator

func NewGenerator(prefix string) *Generator

func (*Generator) Printf

func (g *Generator) Printf(format string, args ...interface{})

Printf like fmt.Printf, but add the string to g.buf.

type Package

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

Package defines options for package.

type Value

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

Value represents a declared constant.

func (*Value) ParseComment

func (v *Value) ParseComment() (string, string)

ParseComment parse comment to http code and error code description.

func (*Value) String

func (v *Value) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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