visitor

package
v0.0.0-...-091dabd Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateProvider

func UpdateProvider(f *ast.File, providerName, paramName string)

Types

type CmdWireVisitor

type CmdWireVisitor struct {
	CmdName      string
	UpperCmdName string
	AppName      string
	// contains filtered or unexported fields
}

func NewCmdWireVisitor

func NewCmdWireVisitor(cmdName string, upperCmdName string, appName string) *CmdWireVisitor

func (*CmdWireVisitor) InsertInitCmdFunc

func (v *CmdWireVisitor) InsertInitCmdFunc(file *ast.File)

func (*CmdWireVisitor) Visit

func (v *CmdWireVisitor) Visit(node ast.Node) ast.Visitor

type CurrentProvideVisitor

type CurrentProvideVisitor struct {
	FunName string
}

func NewCurrentProvideVisitor

func NewCurrentProvideVisitor(funName string) *CurrentProvideVisitor

func (*CurrentProvideVisitor) Visit

func (v *CurrentProvideVisitor) Visit(node ast.Node) ast.Visitor

type FormatLine

type FormatLine struct {
}

func NewFormatLine

func NewFormatLine() *FormatLine

func (*FormatLine) FormatHttpEngine

func (v *FormatLine) FormatHttpEngine(src any) ([]byte, error)

func (*FormatLine) FormatProvider

func (v *FormatLine) FormatProvider(src any) ([]byte, error)

FormatProvider

type RouteProvideVisitor

type RouteProvideVisitor struct {
	FunName string
	// contains filtered or unexported fields
}

func NewRouteProvideVisitor

func NewRouteProvideVisitor(pkgName string, funName string) *RouteProvideVisitor

func (*RouteProvideVisitor) Visit

func (v *RouteProvideVisitor) Visit(node ast.Node) ast.Visitor

type UpdateRoot

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

func NewUpdateRoot

func NewUpdateRoot(varName string, varType string) *UpdateRoot

func (*UpdateRoot) Visit

func (v *UpdateRoot) Visit(node ast.Node) ast.Visitor

Jump to

Keyboard shortcuts

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