config

package
v0.0.0-...-d2e6534 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config[T validate.Validator] struct {
	// contains filtered or unexported fields
}

func New

func New[T validate.Validator](opts ...Option[T]) *Config[T]

func (*Config[T]) Val

func (c *Config[T]) Val() T

func (*Config[T]) Validate

func (c *Config[T]) Validate() error

type Option

type Option[T any] func(v *T)

Jump to

Keyboard shortcuts

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