func (r *Registry) String() string {
	r.mu.RLock()
	defer r.mu.RUnlock()

	buf := new(bytes.Buffer)
	for i, s := range r.sections {
		if len(s.kvs) == 0 {
			continue
		}

		if i != 0 {
			buf.WriteByte('\n')
		}
		s.writeTo(buf)
	}
	return buf.String()
}
// String generates an info string output
String generates an info string output
// String generates an info string output
func (r *Registry) String() string {
	r.mu.RLock()
	defer r.mu.RUnlock()
	buf := new(bytes.Buffer)
	for i, s := range r.sections {
		if len(s.kvs) == 0 {
			continue
		}
		if i != 0 {
			buf.WriteByte('\n')
		}
		s.writeTo(buf)
	}
	return buf.String()
}
func ( r * Registry ) String ( ) string { r . mu . RLock ( ) defer r . mu . RUnlock ( ) buf := new ( bytes . Buffer ) for i , s := range r . sections { if len ( s . kvs ) == 0 { continue } if i != 0 { buf . WriteByte ( '\n' ) } s . writeTo ( buf ) } return buf . String ( ) }
String generates an info string output
String generates an info string output