config

package
v0.0.0-...-0eb8f9d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustValidate

func MustValidate[T any](config *T) *T

MustValidate applies validation on the config based on struct-tags. It panics if the validation check fails.

func Read

func Read[T any]() *T

Read reads configuration values into the provided struct type using Viper and reflection.

func Validate

func Validate[T any](config *T) (*T, error)

Validate applies validation on the config based on struct-tags. It returns an error if validation fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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