validator

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDarwin added in v0.13.2

func IsDarwin() bool

func IsWindows added in v0.13.2

func IsWindows() 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 ValidIPCIDR added in v0.6.1

func ValidIPCIDR(i string) bool

func ValidIPv4

func ValidIPv4(i string) bool

If i is a ipv4 address return true.

func ValidIPv4CIDR added in v0.3.1

func ValidIPv4CIDR(i string) bool

func ValidIPv6

func ValidIPv6(i string) bool

If i is a ipv6 address return true.

func ValidIPv6CIDR added in v0.3.1

func ValidIPv6CIDR(i string) bool

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