humiditycalc/main.go

28 lines
370 B
Go
Raw Normal View History

2024-10-26 14:31:51 +00:00
package main
import (
2024-11-02 12:24:36 +00:00
"fmt"
"os"
2024-11-02 18:11:56 +00:00
"github.com/LeRoid-hub/humiditycalc/configs"
2024-10-26 14:31:51 +00:00
"github.com/LeRoid-hub/humiditycalc/server"
)
func main() {
2024-11-02 18:11:56 +00:00
env := configs.Load()
switch env["MODE"] {
case "both":
server.Run(env)
case "weather":
server.Run(env)
2024-11-02 12:24:36 +00:00
// weather.Run()
case "calc":
server.Run(env)
2024-11-02 12:24:36 +00:00
// calc.Run()
default:
server.Run(env)
2024-11-07 09:33:35 +00:00
}
}
2024-11-02 12:24:36 +00:00