pfilter

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Description = "make a FitlerXXX() function"
View Source
var Flags = []cli.Flag{

	cli.StringFlag{
		Name:  "type,t",
		Usage: "the `TYPE` to filter field",
	},
	cli.StringFlag{
		Name:  "name,n",
		Usage: "the `FUNCTION` to generate, default is FilterXXX",
	},
	cli.StringFlag{
		Name:  "tag,g",
		Usage: "tag name to define the checker rule, defualt is checker",
	},
	cli.StringFlag{
		Name:  "output,o",
		Usage: "the `FILE` to output",
	},
}
View Source
var Usage = "generate struct paths filter function"

Functions

func Action

func Action(c *cli.Context) error

Types

type Config

type Config struct {
	Type     string
	Name     string
	Output   string
	TagName  string
	WorkFile string
}

type Generator

type Generator struct {
	generator.Generator
	CheckerType parser.Type
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Generate

func (g *Generator) Generate(c *Config) error

func (*Generator) Run

func (g *Generator) Run(c *Config)

Jump to

Keyboard shortcuts

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