Tag

package
v0.0.0-...-7e13a3b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IsPb2            = true
	TemplateFileName = `template.go`
)
View Source
var W = library{
	Check: Check.New(),
}

Functions

func FilterStruct

func FilterStruct(f *ast.File, Key string)

func Kind2TypeStr

func Kind2TypeStr(kind reflect.Kind) (Type string)

func TypeStr2Kind

func TypeStr2Kind(Type string) (Kind reflect.Kind)

Types

type FilterNode

type FilterNode func(*ast.File, string)

type ParserTag

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

func NewParser

func NewParser() *ParserTag

func (*ParserTag) ParseFile

func (p *ParserTag) ParseFile(fileName string, Key string)

func (ParserTag) Run

func (n ParserTag) Run(f *ast.File, Key string)

func (ParserTag) UseFilter

func (n ParserTag) UseFilter(f FilterNode)

type Tag

type Tag interface {
	AddProtoBufTag()
	AddFlatBufTag()
}

func New

func New() Tag

Jump to

Keyboard shortcuts

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