enum

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSlice

func ValidateSlice(target []string, valid []string) (bool, error)

ValidateSlice validates that all items in target is one of valid

func ValidateString

func ValidateString(target string, valid []string) (bool, error)

ValidateString validates that a string is in the list of allowed values

func ValidateStructField

func ValidateStructField(value reflect.Value, tag string) (bool, error)

ValidateStructField validates a structure field, only []string and string types are supported

Types

This section is empty.

Jump to

Keyboard shortcuts

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