1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 11:00:55 +02:00

Implement config loading

This commit is contained in:
Alexandre Iooss
2020-09-21 19:59:41 +02:00
parent a0d814b76b
commit 28e3b4c753
5 changed files with 382 additions and 7 deletions

12
main.go
View File

@ -1,9 +1,19 @@
package main
import (
"log"
"gitlab.crans.org/nounous/ghostream/internal/config"
"gitlab.crans.org/nounous/ghostream/web"
)
func main() {
web.ServeHTTP()
// Load configuration
cfg, err := config.New()
if err != nil {
log.Fatal(err)
}
// Start web server
web.ServeHTTP(cfg)
}