mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-06-27 15:49:55 +02:00
remove compare export
This commit is contained in:
parent
a150128e73
commit
56dcfc27f1
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user