slideshow/main.go

23 lines
538 B
Go

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"
)
func main() {
timestamp := time.Now().UnixMilli()
loggo.Info("slideshow is starting now...")
var waitgroup sync.WaitGroup
waitgroup.Add(1)
config.Initialize()
scanner.Initialize()
slideshow.Start()
waitgroup.Wait()
loggo.InfoTimed("slideshow is shutting down now!", timestamp)
}