validator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidCIDRIPv4 added in v0.3.0

func ValidCIDRIPv4(i string) bool

func ValidCIDRIPv6 added in v0.3.0

func ValidCIDRIPv6(i string) bool

func ValidDomain

func ValidDomain(i any) bool

If i is a domain return true.

func ValidFile

func ValidFile(f string) bool

If f is a valid path return true.

func ValidIP

func ValidIP(i string) bool

If i is a ipv address return true.

func ValidIPv4

func ValidIPv4(i string) bool

If i is a ipv4 address return true.

func ValidIPv6

func ValidIPv6(i string) bool

If i is a ipv6 address return true.

func ValidURL

func ValidURL(u string) bool

If u is a valid url return true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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