config

package
v0.0.0-...-f838e45 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config parses environment variables into a config struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintUsage

func PrintUsage(w io.Writer)

PrintUsage prints the possible environment variables to w.

Types

type Config

type Config struct {
	AgentToken string `env:"AGENT_TOKEN,required"`
}

Config holds the parsed environment variables.

func Load

func Load() (*Config, error)

Load attempts to parse environment variables into a Config struct instance.

Jump to

Keyboard shortcuts

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