re

package
v0.0.0-...-a915469 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IPv6Address        = regexp.MustCompile(`^` + ipv6Address + `$`)
	IPv6AddressLiteral = regexp.MustCompile(`^\[` + ipv6Address + `\]$`)
)
View Source
var ClientSecret = regexp.MustCompile(`^[0-9a-zA-Z.=_\-]+$`)
View Source
var Hostname = regexp.MustCompile(`(?i)^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$`)
View Source
var IPv4Address = regexp.MustCompile(`^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$`)

Functions

func IsClientSecret

func IsClientSecret(s string) bool

func IsHostname

func IsHostname(s string) bool

func IsIPv4Address

func IsIPv4Address(s string) bool

func IsIPv6Address

func IsIPv6Address(s string) bool

func IsIPv6AddressLiteral

func IsIPv6AddressLiteral(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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