mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
17 lines
369 B
Go
17 lines
369 B
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// GetEnv returns the value of the environment variable named by the key or the defaultValue if the environment variable is not set.
|
|
func GetEnv(name, defaultValue string) string {
|
|
value := os.Getenv(name)
|
|
if value == "" {
|
|
return defaultValue
|
|
}
|
|
return value
|
|
}
|