Print all the modules

master
Elis Hirwing 2017-11-04 14:36:01 +01:00
parent 65640246f3
commit 0183d7e07c
Signed by: etu
GPG Key ID: D57EFA625C9A925F
1 changed files with 16 additions and 1 deletions

View File

@ -6,14 +6,29 @@ import (
"io/ioutil"
"os"
"statusscreen"
"time"
)
func main() {
config := getConfig("status.toml")
sl := statusscreen.SL{Config: &config}
clock := statusscreen.Clock{Config: &config}
weather := statusscreen.Weather{Config: &config}
fmt.Println(sl.GetOutput())
for {
for _, row := range clock.GetOutput() {
fmt.Println(row)
}
for _, row := range weather.GetOutput() {
fmt.Println(row)
}
for _, row := range sl.GetOutput() {
fmt.Println(row)
}
time.Sleep(1 * time.Second)
}
}
func getConfig(configFile string) statusscreen.Config {