xconfmap

package module
v0.0.0-...-77f8246 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(cfg any) error

Validate validates a config, by doing this:

  • Call Validate on the config itself if the config implements ConfigValidator.

Types

type Validator

type Validator interface {
	// Validate the configuration and returns an error if invalid.
	Validate() error
}

Validator defines an optional interface for configurations to implement to do validation.

Jump to

Keyboard shortcuts

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