mirror of
https://github.com/LeRoid-hub/humiditycalc.git
synced 2025-01-31 03:34:56 +00:00
28 lines
370 B
Go
28 lines
370 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/LeRoid-hub/humiditycalc/configs"
|
|
"github.com/LeRoid-hub/humiditycalc/server"
|
|
)
|
|
|
|
func main() {
|
|
env := configs.Load()
|
|
|
|
switch env["MODE"] {
|
|
case "both":
|
|
server.Run(env)
|
|
case "weather":
|
|
server.Run(env)
|
|
// weather.Run()
|
|
case "calc":
|
|
server.Run(env)
|
|
// calc.Run()
|
|
default:
|
|
server.Run(env)
|
|
}
|
|
}
|
|
|