chore: more scaffolding

This commit is contained in:
2023-05-04 13:03:57 +02:00
parent 965467d129
commit 2c5d9cf543
10 changed files with 336 additions and 19 deletions
+4
View File
@@ -42,3 +42,7 @@ func init() {
nodes := loadEnv("NODES", "") // for example "node1,node2,node3"
Nodes = strings.Split(nodes, ",")
}
func IsModeDevelopment() bool {
return strings.HasPrefix(strings.ToLower(Mode), "dev")
}