added basic skeleton and two API endpoints to test backend stack.

This commit is contained in:
2022-04-12 20:30:16 +02:00
parent 22e8290371
commit 11c0bd62e2
40 changed files with 1480 additions and 8 deletions
+20
View File
@@ -0,0 +1,20 @@
package envvars
import (
"os"
"strconv"
)
func Int(key string) int {
value := os.Getenv(key)
if value == "" {
return 0
}
intValue, err := strconv.Atoi(value)
if err != nil {
return 0
}
return intValue
}
+7
View File
@@ -0,0 +1,7 @@
package envvars
import "os"
func String(key string) string {
return os.Getenv(key)
}