configo icon indicating copy to clipboard operation
configo copied to clipboard

Export the applyDefault function

Open shafreeck opened this issue 6 years ago • 0 comments

Export the applyDefault function as ApplyDefault.

It is useful to build an object with default configurations.

// now the default is an object initialized by empty values.
default := conf.ExampleConfig()
// fill the fields with default value
configo.ApplyDefault(&default)

shafreeck avatar Jul 22 '19 08:07 shafreeck