Maint: use qdm12/gosplash

This commit is contained in:
Quentin McGaw (desktop)
2021-07-22 20:56:47 +00:00
parent c33402ce66
commit 5b9887dade
10 changed files with 36 additions and 105 deletions

View File

@@ -9,7 +9,7 @@ import (
"net/http"
"time"
"github.com/qdm12/gluetun/internal/logging"
"github.com/qdm12/gluetun/internal/format"
"github.com/qdm12/gluetun/internal/models"
)
@@ -38,7 +38,7 @@ func GetMessage(ctx context.Context, buildInfo models.BuildInformation,
if tagName == buildInfo.Version {
return fmt.Sprintf("You are running the latest release %s", buildInfo.Version), nil
}
timeSinceRelease := logging.FormatDuration(time.Since(releaseTime))
timeSinceRelease := format.Duration(time.Since(releaseTime))
return fmt.Sprintf("There is a new release %s (%s) created %s ago",
tagName, name, timeSinceRelease),
nil