annotations

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	All    = "all"
	Tagged = "tagged"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	Required string `annotation:"name=type,default=all,oneOf=all;tagged"`
	Name     string `annotation:"name=name,default={{.TypeName}}Validator"`
}

func (Validator) BuildName

func (v Validator) BuildName(typeName string) string

Jump to

Keyboard shortcuts

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