stringrule

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package stringrule contains string predicates shared by fluent validators and compiled struct tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Email

func Email(value string) bool

Email reports whether value is one plain mailbox address without display text or line breaks.

func IP

func IP(value string) bool

IP reports whether value is an IPv4 or IPv6 address.

func URL

func URL(value string) bool

URL reports whether value is an absolute request URI with a host.

func UUID

func UUID(value string) bool

UUID reports whether value has the canonical hyphenated UUID shape.

Types

This section is empty.

Jump to

Keyboard shortcuts

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