ghostream/main.go

25 lines
335 B
Go

package main
import (
"log"
"gitlab.crans.org/nounous/ghostream/internal/config"
"gitlab.crans.org/nounous/ghostream/web"
)
func main() {
// Load configuration
cfg, err := config.New()
if err != nil {
log.Fatal(err)
}
// Start web server routine
go func() {
web.ServeHTTP(cfg)
}()
// Wait for routines
select {}
}