remove compare export

This commit is contained in:
Celogeek 2023-04-23 14:10:47 +02:00
parent a150128e73
commit 56dcfc27f1
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

@ -16,7 +16,7 @@ type part struct {
number float64
}
func (a part) Compare(b part) float64 {
func (a part) compare(b part) float64 {
if a.number == 0 || b.number == 0 {
return float64(strings.Compare(a.fullname, b.fullname))
}
@ -70,7 +70,7 @@ func comparePart(a, b []part) float64 {
m = len(b)
}
for i := 0; i < m; i++ {
c := a[i].Compare(b[i])
c := a[i].compare(b[i])
if c != 0 {
return c
}