config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config loads and validates runtime configuration from the environment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TelegramToken  string
	TelegramChatID string
	ListenAddr     string
	LogLevel       slog.Level
}

Config holds validated runtime configuration.

func Load

func Load() (Config, error)

Load reads configuration from the environment, applying defaults and validating required values. It returns an error listing any missing required variables or an invalid LOG_LEVEL.

Jump to

Keyboard shortcuts

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