validators

package
v0.0.0-...-5da7351 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntIsNotNull

type IntIsNotNull struct {
	Name  string
	Field nulls.Int
}

IntIsNotNull is a structure describing a named nullable int

func (*IntIsNotNull) IsValid

func (v *IntIsNotNull) IsValid(errors *validate.Errors)

IsValid checks if nullable int is null; if so returns error

type IsNotNull

type IsNotNull struct {
	Name  string
	Field nulls.Nulls
}

IsNotNull is a structure describing a named nullable

func (*IsNotNull) IsValid

func (v *IsNotNull) IsValid(errors *validate.Errors)

IsValid checks if nullable field is null; if so returns error

Jump to

Keyboard shortcuts

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