priest

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const InjectTag = "gone"

Variables

View Source
var Command = &cli.Command{
	Name:        "priest",
	Usage:       "-s ${scanPackageDir} -p ${pkgName} -f ${funcName} -o ${outputDir} [-w]",
	Description: "generate gone priest function",
	Flags:       flags,
	Action:      action,
}

Functions

func TimeStat

func TimeStat(processName string) func()

Types

type Fn

type Fn struct {
	Name string
	Kind FnKind
}

func (Fn) Gen

func (f Fn) Gen(pkgName string) string

type FnKind

type FnKind int
const (
	PriestFn FnKind = iota
	NewGonerFn
)

type Pkg

type Pkg struct {
	ID       string //包的绝对路径
	Name     string
	PkgPath  string
	FuncList []Fn
}

func ScanDir

func ScanDir(dir, moduleName, moduleDir string) ([]*Pkg, error)

Jump to

Keyboard shortcuts

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