fuzzyworld

template / files / internal / core / default_config.go

default_config.go

Blame: the commit that last changed each line · file · history

37160b89 2026-05-01 Pavel Safronov1package core
c140b8ee 2023-04-11 Pavel Safronov2
51fece6b 2026-05-01 Pavel Safronov3import (
4 _ "embed"
c140b8ee 2023-04-11 Pavel Safronov5
51fece6b 2026-05-01 Pavel Safronov6 "gopkg.in/yaml.v3"
7)
c140b8ee 2023-04-11 Pavel Safronov8
51fece6b 2026-05-01 Pavel Safronov9//go:embed defaults.yaml
10var defaultConfigYAML []byte
c140b8ee 2023-04-11 Pavel Safronov11
51fece6b 2026-05-01 Pavel Safronov12func defaultConfig() Config {
13 var config Config
14 if err := yaml.Unmarshal(defaultConfigYAML, &config); err != nil {
15 panic("defaults.yaml is invalid: " + err.Error())
c140b8ee 2023-04-11 Pavel Safronov16 }
17 return config
18}