validation

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append added in v1.0.42

func Append(err error, e *Error) error

func IsDatasetAccessLevel

func IsDatasetAccessLevel(val string) bool

func IsDatasetIdentifierType

func IsDatasetIdentifierType(val string) bool

func IsDatasetLicense

func IsDatasetLicense(val string) bool

func IsDate

func IsDate(val string) bool

func IsPublicationType

func IsPublicationType(val string) bool

func IsStatus

func IsStatus(val string) bool

func IsYear

func IsYear(val string) bool

Types

type Error

type Error struct {
	Pointer string
	Code    string
}

func (*Error) Error

func (e *Error) Error() string

type Errors

type Errors []*Error

func (Errors) At

func (errs Errors) At(ptr string) *Error

func (Errors) Error

func (errs Errors) Error() string

Jump to

Keyboard shortcuts

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