// Aggregate return sorted sort key and value
Aggregate return sorted sort key and value
// Aggregate return sorted sort key and value
func (m *SetMetrics) Aggregate() map[string]Data {
	m.value.mu.RLock()
	defer m.value.mu.RUnlock()
	s := make([]string, 0)
	for k := range m.value.v {
		s = append(s, k)
	}
	sort.Strings(s)
	return map[string]Data{
		m.key: &StringSlice{
			s: s,
		},
	}
}
func ( m * SetMetrics ) Aggregate ( ) map [ string ] Data { m . value . mu . RLock ( ) defer m . value . mu . RUnlock ( ) s := make ( [ ] string , 0 ) for k := range m . value . v { s = append ( s , k ) } sort . Strings ( s ) return map [ string ] Data { m . key : & StringSlice { s : s , } , } }
Aggregate return sorted sort key and value
Aggregate return sorted sort key and value