type Fingerprint … // FingerprintFromString transforms a string representation into a Fingerprint. func FingerprintFromString(s string) (Fingerprint, error) { … } // ParseFingerprint parses the input string into a fingerprint. func ParseFingerprint(s string) (Fingerprint, error) { … } func (f Fingerprint) String() string { … } type Fingerprints … // Len implements sort.Interface. func (f Fingerprints) Len() int { … } // Less implements sort.Interface. func (f Fingerprints) Less(i, j int) bool { … } // Swap implements sort.Interface. func (f Fingerprints) Swap(i, j int) { … } type FingerprintSet … // Equal returns true if both sets contain the same elements (and not more). func (s FingerprintSet) Equal(o FingerprintSet) bool { … } // Intersection returns the elements contained in both sets. func (s FingerprintSet) Intersection(o FingerprintSet) FingerprintSet { … }