loader

package
v0.5.13 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ProfilesActiveFromEnvVar Environment variable for switching profiles.
	// When this environment variable is set, it will override `ProfilesAlias`.
	ProfilesActiveFromEnvVar = "JIMU_PROFILES_ACTIVE"
)

Variables

This section is empty.

Functions

func Load

func Load(v any, opts ...Option) error

Types

type Option

type Option func(*loadOptions)

func WithConfigurationDirectory added in v0.5.9

func WithConfigurationDirectory(dir string, defaults string) Option

func WithEnvVarsPrefix

func WithEnvVarsPrefix(prefix string) Option

func WithProfilesActiveFromEnvVar added in v0.5.9

func WithProfilesActiveFromEnvVar() Option

func WithProfilesAlias

func WithProfilesAlias(alias string) Option

Jump to

Keyboard shortcuts

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