mirror of
https://github.com/aykhans/movier.git
synced 2025-09-09 15:50:43 +00:00
Rewritten in go and python
This commit is contained in:
11
server/pkg/utils/env.go
Normal file
11
server/pkg/utils/env.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package utils
|
||||
|
||||
import "os"
|
||||
|
||||
func GetEnv(key, default_ string) string {
|
||||
value := os.Getenv(key)
|
||||
if value == "" {
|
||||
return default_
|
||||
}
|
||||
return value
|
||||
}
|
Reference in New Issue
Block a user