Use go-boilerplate

This commit is contained in:
2025-05-09 16:12:03 +00:00
parent aec42cad96
commit 03c040b373
22 changed files with 130 additions and 224 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"strings"
"time"
"github.com/rwinkhart/go-boilerplate/back"
"github.com/rwinkhart/libmutton/core"
)
@@ -17,7 +18,7 @@ func GetRemoteDataFromServer(clientDeviceID string) {
modList := getModTimes(entryList)
deletionsList, err := os.ReadDir(core.ConfigDir + core.PathSeparator + "deletions")
if err != nil {
core.PrintError("Failed to read the deletions directory: "+err.Error(), core.ErrorRead, true)
back.PrintError("Failed to read the deletions directory: "+err.Error(), back.ErrorRead, true)
}
// print the current UNIX timestamp to stdout