goext

package
v0.0.0-...-a234980 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(obj any) error

Validate struct by field's tag. the tags currently supported as below:

string: required, digit, ip4addr, ip6addr, ip4net, ip6net, netmask, macaddr, domain, url, port, date, datetime, time

int: nonzero, positive, negative, gte0, lte0, port

uint: nonzero, positive, port

float: nonzero, positive, negative, gte0, lte0

pointer: required and actual type's tag

func ValidateTag

func ValidateTag(obj any, tagname string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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