type Field … type FieldList … // Sort sorts the field list by Name. func (f FieldList) Sort() { … } // Less compares two lists lexically. func (f FieldList) Less(rhs FieldList) bool { … } // Compare compares two lists lexically. The result will be 0 if f==rhs, -1 // if f < rhs, and +1 if f > rhs. func (f FieldList) Compare(rhs FieldList) int { … } // Equals returns true if the two fieldslist are equals, false otherwise. func (f FieldList) Equals(rhs FieldList) bool { … }