package mcp import ( "yunyan/modules" "yunyan/lego/utils/mapstructure" ) type ( Options struct { modules.Options Port int Addr string TLSCertFile string TLSKeyFile string Groups map[string][]string } ) func (this *Options) LoadConfig(settings map[string]interface{}) (err error) { if settings != nil { if err = this.Options.LoadConfig(settings); err != nil { return } if err = mapstructure.Decode(settings, this); err != nil { return } } return }