change: refractored and seperated all code into different parts

This commit is contained in:
2025-02-12 14:56:01 +01:00
parent acf6638cad
commit 63677b90b9
8 changed files with 222 additions and 179 deletions

18
Backend/helper/system.go Normal file
View File

@@ -0,0 +1,18 @@
package helper
import (
"os"
)
// Returns env with default fallback value.
//
// Params:
//
// key - enviroment var name
// fallback - default value
func GetEnv(key, fallback string) string {
if value, ok := os.LookupEnv(key); ok {
return value
}
return fallback
}