Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyProperties ¶
type KeyProperties []Property
KeyProperties is a slice of Property elements sorted by Key.
func UniqueKeys ¶
func UniqueKeys(kp KeyProperties, keeplast bool) KeyProperties
UniqueKeys returns a slice with only one instance of each unique-key property. If keeplast is true, the last element of the same key will be kept rather than the first. The list will be sorted by Key.
func (KeyProperties) Less ¶
func (p KeyProperties) Less(a, b int) bool
Less reports whether the property with index a should sort before the property with index b.
func (KeyProperties) Swap ¶
func (p KeyProperties) Swap(a, b int)
Swap the properties with indices a and b.
type ValueProperties ¶
type ValueProperties []Property
ValueProperties is a slice of Property elements sorted by Value.
func UniqueValues ¶
func UniqueValues(vp ValueProperties, keeplast bool) ValueProperties
UniqueValues returns a slice with only one instance of each unique value-property. The list will be sorted by Value.
func (ValueProperties) Less ¶
func (p ValueProperties) Less(a, b int) bool
Less reports whether the property with index a should sort before the property with index b.
func (ValueProperties) Swap ¶
func (p ValueProperties) Swap(a, b int)
Swap the properties with indices a and b.