config

package
v0.0.0-...-e10eb37 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPath = errors.New("path to config must not be empty")

Functions

This section is empty.

Types

type Config

type Config struct {
	Postgres *pg.Config       `mapstructure:"postgres"`
	Telegram *telegram.Config `mapstructure:"telegram"`
}

type Loader

type Loader[T any] struct {
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader[T any]() *Loader[T]

func (*Loader[T]) Load

func (l *Loader[T]) Load() (*T, error)

func (*Loader[T]) WithDotenvLoadErr

func (l *Loader[T]) WithDotenvLoadErr() *Loader[T]

func (*Loader[T]) WithFilename

func (l *Loader[T]) WithFilename(filename string) *Loader[T]

Jump to

Keyboard shortcuts

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