github.com/wtfutil/wtf@v0.43.0/modules/spacex/settings.go (about) 1 package spacex 2 3 import ( 4 "github.com/olebedev/config" 5 "github.com/wtfutil/wtf/cfg" 6 ) 7 8 const ( 9 defaultFocusable = false 10 ) 11 12 type Settings struct { 13 *cfg.Common 14 } 15 16 func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings { 17 spacex := ymlConfig.UString("spacex") 18 settings := Settings{ 19 Common: cfg.NewCommonSettingsFromModule(name, spacex, defaultFocusable, ymlConfig, globalConfig), 20 } 21 return &settings 22 }