From 56dcfc27f16a52fff469c851e84ecd647e2af362 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sun, 23 Apr 2023 14:10:47 +0200 Subject: [PATCH] remove compare export --- internal/epub/sortpath/epub_sortpath.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/epub/sortpath/epub_sortpath.go b/internal/epub/sortpath/epub_sortpath.go index e89f616..bcefb6d 100644 --- a/internal/epub/sortpath/epub_sortpath.go +++ b/internal/epub/sortpath/epub_sortpath.go @@ -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 }