diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-20 20:56:14 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-20 20:56:14 -0800 |
| commit | 573b74f24fdd64437b5b06e88c1bd4e75233f6c2 (patch) | |
| tree | 9e2209961ef5a129c9d72c9c6c0e0357ef184fcf | |
| parent | 71d55ec5cb98631301c0408a754f0d4ff1a61d18 (diff) | |
| download | seaweedfs-573b74f24fdd64437b5b06e88c1bd4e75233f6c2.tar.xz seaweedfs-573b74f24fdd64437b5b06e88c1bd4e75233f6c2.zip | |
add SetDefault function for Configuration
| -rw-r--r-- | weed/util/config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/util/config.go b/weed/util/config.go index 6a9ee582a..4ba68b800 100644 --- a/weed/util/config.go +++ b/weed/util/config.go @@ -10,6 +10,7 @@ type Configuration interface { GetBool(key string) bool GetInt(key string) int GetStringSlice(key string) []string + SetDefault(key string, value interface{}) } func LoadConfiguration(configFileName string, required bool) (loaded bool) { |
