tests

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarSubStruct

type BarSubStruct struct {
	IP   string `csval:"req,ip"`
	Port int
}

BarSubStruct is a sample struct to be validated

type FooNoVal added in v0.4.0

type FooNoVal struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
}

type FooStruct

type FooStruct struct {
	Name        string       `csval:"req"`
	Email       string       `csval:"req,email"`
	Password    string       `csval:"min(3),max(11)"`
	ConfirmPass string       `csval:"req,equals(Password)"`
	Age         int          `csval:"min(18),max(65)"`
	Sub         BarSubStruct `csval:"obj"`
}

FooStruct is a sample struct to be validated

Jump to

Keyboard shortcuts

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