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.
Click to show internal directories.
Click to hide internal directories.