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:
12
main.go
12
main.go
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user