// helpers.go
package helpers
import "os"
func GetEnvKey(key string) string {
return os.Getenv(key)
}
// main.go
import (
"mitt-projekt/helpers"
"fmt"
)
func main() {
fmt.PrintLn(helpers.GetEnvKey("MIN_ENV_KEY"))
}
// helpers.go
package helpers
import "os"
func GetEnvKey(key string) string {
return os.Getenv(key)
}
// main.go
import (
"mitt-projekt/helpers"
"fmt"
)
func main() {
fmt.PrintLn(helpers.GetEnvKey("MIN_ENV_KEY"))
}