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
+1 -16
View File
@@ -1,14 +1,9 @@
package core
import (
"os"
)
type ByteInputFetcher func(prompt string) []byte
var (
PassphraseInputFunction ByteInputFetcher // Clients should set this to a function that fetches hidden input from the user
Home, _ = os.UserHomeDir()
GetPassphrase ByteInputFetcher // Clients should set this to a function that fetches hidden input from the user
)
const (
@@ -18,20 +13,10 @@ const (
FSPath = "\u259e" // ▞ Path separator
FSMisc = "\u259f" // ▟ Misc. field separator (if \u259d is already used)
AnsiError = "\033[38;5;9m"
AnsiReset = "\033[0m"
ErrorRead = 101
ErrorWrite = 102
ErrorSyncProcess = 103
ErrorServerConnection = 104
ErrorTargetNotFound = 105
ErrorTargetExists = 106
ErrorTargetWrongType = 107
ErrorDecryption = 108
ErrorEncryption = 109
ErrorClipboard = 110
ErrorOther = 111
)
var GetPassphrase func() []byte