Improve: clean code

This commit is contained in:
Dreamacro
2018-08-12 16:18:58 +08:00
parent fc4f119049
commit ebe1cee6dc
7 changed files with 97 additions and 83 deletions

View File

@ -364,6 +364,7 @@ func newConfig() *Config {
return config
}
// Instance return singleton instance of Config
func Instance() *Config {
once.Do(func() {
config = newConfig()