cli

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SUFFIX = ".vgen.go"

Variables

This section is empty.

Functions

func CreateCommands

func CreateCommands()

Types

type DetailedError added in v0.1.2

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

func (DetailedError) Error added in v0.1.2

func (e DetailedError) Error() string

type ErrorMessage added in v0.1.3

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

func (ErrorMessage) Format added in v0.1.3

func (g ErrorMessage) Format(detailed bool) string

type FieldTags

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

type FieldType

type FieldType interface {
	Type() string
}

type FieldTypeArray

type FieldTypeArray struct{}

func (FieldTypeArray) Type

func (f FieldTypeArray) Type() string

type FieldTypeIdent

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

func (FieldTypeIdent) Type

func (f FieldTypeIdent) Type() string

type FieldTypeImport

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

func (FieldTypeImport) Type

func (f FieldTypeImport) Type() string

type FieldTypeInfo

type FieldTypeInfo struct {
	Types     []FieldType
	Pointer   bool
	Primitive bool
	Import    string
}

type FieldTypeMap

type FieldTypeMap struct{}

func (FieldTypeMap) Type

func (f FieldTypeMap) Type() string

type InfoMessage added in v0.1.3

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

func (InfoMessage) Format added in v0.1.3

func (g InfoMessage) Format() string

type ParseInfo

type ParseInfo struct {
	Package     string
	StructTypes []StructType
	Imports     map[string]string
}

type Parser added in v0.1.3

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

func (Parser) CurrentLine added in v0.1.3

func (p Parser) CurrentLine() *int

func (*Parser) SetPos added in v0.1.3

func (p *Parser) SetPos(node ast.Node)

type StructField

type StructField struct {
	Name    string
	Types   []FieldType
	Tags    string
	Alias   string
	Nested  bool
	Pointer bool
	Import  string
}

func (StructField) Type

func (s StructField) Type() string

type StructType

type StructType struct {
	Name   string
	Fields []StructField
}

type TypeTags

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

type WarningMessage added in v0.1.3

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

func (WarningMessage) Format added in v0.1.3

func (g WarningMessage) Format() string

Jump to

Keyboard shortcuts

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