Adding environment variable (config) retrieval interface/struct

Signed-off-by: Ethan Wellenreiter <ewellenreiter@gmail.com>
This commit is contained in:
Ethan Wellenreiter 2025-04-30 20:53:01 -04:00
parent 4a21980e44
commit 026cd2ee9a
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
package env
type environment interface {
type Environment interface {
Initialize(path string)
GetString(key string, defaultValue string) string
GetBool(key string, defaultValue bool) bool

View File

@ -0,0 +1,7 @@
package env
type EnvironmentVariables struct {
// nothing. just empty
}
// also add one for a file