validators

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IsIPNetwork

type IsIPNetwork struct{}

IsIPNetwork checks if a string is a valid IP network.

func (IsIPNetwork) Description

func (validator IsIPNetwork) Description(_ context.Context) string

Description describes the validation in plain text formatting.

func (IsIPNetwork) MarkdownDescription

func (validator IsIPNetwork) MarkdownDescription(ctx context.Context) string

MarkdownDescription describes the validation in Markdown formatting.

func (IsIPNetwork) ValidateString

func (v IsIPNetwork) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)

Validate performs the validation.

Jump to

Keyboard shortcuts

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