validate

package
v0.131.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueByField

func UniqueByField[T any](fieldName string, getter func(T) string) validator.List

UniqueByField validates that the list does not contain two or more items with same "field" value.

func UniqueCaseInsensitive added in v0.126.0

func UniqueCaseInsensitive() validator.Set

UniqueCaseInsensitive validates that the set does not contain two or more equals strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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