batazor/go-auth

View on GitHub
utils/env.go

Summary

Maintainability
A
0 mins
Test Coverage
package utils

import "os"

func Getenv(key, fallback string) string {
    value := os.Getenv(key)
    if len(value) == 0 {
        return fallback
    }
    return value
}