config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config provides helpers for reading configuration from environment variables with typed defaults.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, fallback bool) bool

Bool reads an environment variable as a boolean. Accepted truthy values: "1", "true", "yes". Everything else is false.

func Int

func Int(key string, fallback int) int

Int reads an environment variable as an integer, returning the fallback on parse failure or if the variable is unset.

func String

func String(key, fallback string) string

String reads an environment variable, returning the fallback if unset or empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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