func (r *Registry) FetchSection(name string) *Section {
	if s := r.FindSection(name); s != nil {
		return s
	}

	r.mu.Lock()
	defer r.mu.Unlock()

	s := r.findSection(name)
	if s == nil {
		s = &Section{name: name}
		r.sections = append(r.sections, s)
	}
	return s
}
// FetchSection returns a section, or appends a new one
// when the given name cannot be found
FetchSection returns a section, or appends a new one
when the given name cannot be found
// FetchSection returns a section or appends a new one // when the given name cannot be found
func (r *Registry) FetchSection(name string) *Section {
	if s := r.FindSection(name); s != nil {
		return s
	}
	r.mu.Lock()
	defer r.mu.Unlock()
	s := r.findSection(name)
	if s == nil {
		s = &Section{name: name}
		r.sections = append(r.sections, s)
	}
	return s
}
func ( r * Registry ) FetchSection ( name string ) * Section { if s := r . FindSection ( name ) ; s != nil { return s } r . mu . Lock ( ) defer r . mu . Unlock ( ) s := r . findSection ( name ) if s == nil { s = & Section { name : name } r . sections = append ( r . sections , s ) } return s }
FetchSection returns a section, or appends a new one
when the given name cannot be found
FetchSection returns a section or appends a new one when the given name cannot be found