server/pkg/util/utils.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package util

import (
    "os"
)

func IsEnvVarTrue(envVarName string) bool {
    switch value := os.Getenv(envVarName); value {
    case "", "0", "false", "FALSE", "no", "NO":
        return false
    }
    return true
}