configvalidator

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknowField = errors.New("unknown field")

ErrUnknowField returns when an unknown field appears in the config.

Functions

func CheckForUnknownFields

func CheckForUnknownFields(configMap map[string]any, config any) error

CheckForUnknownFields validates the config struct for unknown fields with the config map. If the field in the config is a map of a key and some value, need to use `mapstructure:,remain` and `prefix` tag with the key prefix, even it is empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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