prepare

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package prepare provides a function to validate configuration recursively.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(src interface{}) error

Prepare calls Prepare() method on the object and its fields recursively.

Types

type Preparer

type Preparer interface {
	// Prepare validates something.
	Prepare() error
}

Preparer is used for recursive validation of configuration structures.

Jump to

Keyboard shortcuts

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