validators

package
v0.0.0-...-f003305 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBTCAddress

func IsBTCAddress(str string) bool

IsBTCAddress returns true if the string str is a bitcoin address

func IsBase64Url

func IsBase64Url(str string) bool

IsBase64Url returns true if the string str is base64url (encoded with the "URL and Filename safe" alphabet) https://tools.ietf.org/html/rfc4648#section-5

func IsBase64UrlWithoutPadding

func IsBase64UrlWithoutPadding(str string) bool

IsBase64UrlWithoutPadding returns true if the string str is base64url encoded with end padding omitted

func IsCompactJWS

func IsCompactJWS(str string) bool

IsCompactJWS returns true if the string str is a JSW in the compact JSON serialization

func IsETHAddress

func IsETHAddress(str string) bool

IsETHAddress returns true if the string str is a ethereum address

func IsETHAddressNoChecksum

func IsETHAddressNoChecksum(str string) bool

IsETHAddressNoChecksum returns true if the string str is a ethereum address

func IsPlatform

func IsPlatform(platform string) bool

IsPlatform determines whether or not a given string is a recognized platform

func IsRequiredUUID

func IsRequiredUUID(i interface{}, context interface{}) bool

IsRequiredUUID checks if the uuid is present

func IsUUID

func IsUUID(v string) bool

IsUUID checks if the string is a valid UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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