slideshow/main.go

24 lines
538 B
Go
Raw Normal View History

2023-11-16 15:26:24 +01:00
package main
import (
"sync"
"time"
"git.velvettear.de/velvettear/loggo"
"git.velvettear.de/velvettear/slideshow/internal/config"
"git.velvettear.de/velvettear/slideshow/internal/slideshow"
"git.velvettear.de/velvettear/slideshow/scanner"
2023-11-16 15:26:24 +01:00
)
func main() {
timestamp := time.Now().UnixMilli()
loggo.Info("slideshow is starting now...")
var waitgroup sync.WaitGroup
waitgroup.Add(1)
config.Initialize()
scanner.Initialize()
2023-11-16 15:26:24 +01:00
slideshow.Start()
waitgroup.Wait()
loggo.InfoTimed("slideshow is shutting down now!", timestamp)
}