mirror of
https://github.com/derfenix/webarchive.git
synced 2026-03-11 22:40:58 +03:00
Extend configuration
This commit is contained in:
@@ -10,13 +10,14 @@ import (
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/derfenix/webarchive/application"
|
||||
"github.com/derfenix/webarchive/config"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, os.Kill)
|
||||
defer cancel()
|
||||
|
||||
cfg, err := application.NewConfig(ctx)
|
||||
cfg, err := config.NewConfig(ctx)
|
||||
if err != nil {
|
||||
fmt.Printf("failed to init config: %s", err.Error())
|
||||
os.Exit(2)
|
||||
|
||||
Reference in New Issue
Block a user