config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectedEnv

func ExpectedEnv(varName string, expected []string) string

Check for an environment variable value with expected possibilities, exit program if value not expected

func OptionalEnv

func OptionalEnv(varName string, optional string) string

Check for an environment variable value, if absent use a default value

func RequiredEnv

func RequiredEnv(varName string) string

Check for an environment variable value, exit program if not found

func ValidateEnv

func ValidateEnv()

Function for custom validation of configuration that will panic if values are not expected. //FIXME it's a first start before centralizing configuration then injection of dependency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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