1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-30 22:31:06 +02:00

add SetDefault function for Configuration

This commit is contained in:
Chris Lu 2019-12-20 20:56:14 -08:00
parent 71d55ec5cb
commit 573b74f24f

View file

@ -10,6 +10,7 @@ type Configuration interface {
GetBool(key string) bool GetBool(key string) bool
GetInt(key string) int GetInt(key string) int
GetStringSlice(key string) []string GetStringSlice(key string) []string
SetDefault(key string, value interface{})
} }
func LoadConfiguration(configFileName string, required bool) (loaded bool) { func LoadConfiguration(configFileName string, required bool) (loaded bool) {