validator

package
v0.0.0-...-35c18bc Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamePtrElem = "Ptr"
	NameKey     = "Key"
	NameElem    = "Elem"
	NameField   = "Field"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StructField

type StructField struct {
	Name        string
	DisplayName string
	Location    validator.Location
	Type        typesutil.Type
	Validator   *validator.ValidatorLoader
}

type ValidateFn

type ValidateFn struct {
	Name string
	Type typesutil.Type
}

type ValidatorGen

type ValidatorGen struct {
	gengo.SnippetWriter
	// contains filtered or unexported fields
}

func (*ValidatorGen) GenerateType

func (g *ValidatorGen) GenerateType(c *gengo.Context, named *types.Named) error

func (*ValidatorGen) Init

func (*ValidatorGen) Name

func (g *ValidatorGen) Name() string

func (*ValidatorGen) New

func (g *ValidatorGen) New() gengo.Generator

Jump to

Keyboard shortcuts

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