code: func AttrNames(attrs map[string]interface{}) []string {
  	a := make([]string, 0, len(attrs))
  	for k := range attrs {
  		a = append(a, k)
  	}
  	sort.Strings(a)
  	return a
  }
docs: // AttrNames returns a sorted list of names for an attribute set.