config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	Get(string) string
	GetOrDefault(string, string) string
}

type EnvFile

type EnvFile struct{}

func NewEnvFile

func NewEnvFile(configFolder string) *EnvFile

func (*EnvFile) Get

func (e *EnvFile) Get(key string) string

func (*EnvFile) GetOrDefault

func (e *EnvFile) GetOrDefault(key, defaultValue string) string

Jump to

Keyboard shortcuts

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