queues-go/app/utils/env.go
Egor Matveev c2659fb49c initial
2024-12-31 00:53:40 +03:00

12 lines
170 B
Go

package utils
import "os"
func GetEnv(env string, defaultValue string) string {
value := os.Getenv(env)
if len(value) == 0 {
return defaultValue
}
return value
}