config/env.go
func (c *EnvConfig) Finalize() {
	if c.Blacklist == nil {
		c.Blacklist = []string{}
	}

	if c.Custom == nil {
		c.Custom = []string{}
	}

	if c.Pristine == nil {
		c.Pristine = Bool(false)
	}

	if c.Whitelist == nil {
		c.Whitelist = []string{}
	}
}
func (c *EnvConfig) Finalize() {
	if c.Blacklist == nil {
		c.Blacklist = []string{}
	}

	if c.Custom == nil {
		c.Custom = []string{}
	}

	if c.Pristine == nil {
		c.Pristine = Bool(false)
	}

	if c.Whitelist == nil {
		c.Whitelist = []string{}
	}
}
func ( c * EnvConfig ) Finalize ( ) { if c . Blacklist == nil { c . Blacklist = [ ] string { } } if c . Custom == nil { c . Custom = [ ] string { } } if c . Pristine == nil { c . Pristine = Bool ( false ) } if c . Whitelist == nil { c . Whitelist = [ ] string { } } }
// Finalize ensures there no nil pointers.
Finalize ensures there no nil pointers .