Files
query-orchestration/internal/env/get.go
T
Michael McGuinness b1f8ac453b Merged in feature/baseTemplate (pull request #1)
feat!: base template

* first bit of templating

* codeowners

* linuxbased

* restart

* baseline project

* add grpc api and basic integration test

* startqueue

* queueMsg

* splitscripts

* migrations

* queueintegrationtest

* gateway
2024-12-06 14:38:42 +00:00

25 lines
355 B
Go

package env
import (
"log"
"os"
)
func GetRequired(name string) string {
value, exists := os.LookupEnv(name)
if !exists {
log.Fatal("Environment variable not set: ", name)
}
return value
}
func Get(name string) string {
value, exists := os.LookupEnv(name)
if !exists {
log.Print("Environment variable not set: ", name)
}
return value
}