fix funtion
This commit is contained in:
parent
025441ef7d
commit
2168404670
3
main.go
3
main.go
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getConfigFromEnv(string item) {
|
func getConfigFromEnv(item string) {
|
||||||
var res = ""
|
var res = ""
|
||||||
value := os.Getenv("CONFIG_ENVVAR")
|
value := os.Getenv("CONFIG_ENVVAR")
|
||||||
if value == "" {
|
if value == "" {
|
||||||
|
|
@ -28,6 +28,7 @@ func getConfigFromEnv(string item) {
|
||||||
} else {
|
} else {
|
||||||
res = "NOTFOUND"
|
res = "NOTFOUND"
|
||||||
}
|
}
|
||||||
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
func serveTemplate(w http.ResponseWriter, r *http.Request) {
|
func serveTemplate(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue