evalid

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

	cli.StringFlag{
		Name:  "const,c",
		Usage: "the const to validate",
	},
	cli.StringFlag{
		Name:  "type,t",
		Usage: "the variable type",
	},
	cli.StringFlag{
		Name:  "name,n",
		Usage: "the function `NAME`",
	},
	cli.StringFlag{
		Name:  "output,o",
		Usage: "output to `FILE`",
	},
}
View Source
var Usage = "generate enum valid function"

Functions

func Action

func Action(c *cli.Context) error

Types

type Config

type Config struct {
	Const  string
	Name   string
	Output string
	Input  string
	Type   string
}

type Generator

type Generator struct {
	generator.Generator
	Name         string
	NamePrefix   string
	NamesWithPos map[string][]nameWithPos
	Type         string
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Generate

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

func (*Generator) PrepareTask

func (g *Generator) PrepareTask(conf *Config)

func (*Generator) Run

func (g *Generator) Run()

Jump to

Keyboard shortcuts

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