mirror of
https://github.com/aykhans/dodo.git
synced 2025-09-05 02:43:32 +00:00
Add 'Files' field to the 'Config'. Add 'Value' field to the 'FieldParseError'
This commit is contained in:
@@ -29,6 +29,7 @@ var Defaults = struct {
|
||||
var SupportedProxySchemes []string = []string{"http", "socks5", "socks5h"}
|
||||
|
||||
type Config struct {
|
||||
Files []types.ConfigFile
|
||||
Method *string
|
||||
URL *url.URL
|
||||
Timeout *time.Duration
|
||||
@@ -49,6 +50,7 @@ func NewConfig() *Config {
|
||||
}
|
||||
|
||||
func (config *Config) MergeConfig(newConfig *Config) {
|
||||
config.Files = append(config.Files, newConfig.Files...)
|
||||
if newConfig.Method != nil {
|
||||
config.Method = newConfig.Method
|
||||
}
|
||||
|
Reference in New Issue
Block a user