Refactor for better modularity (share more code among edit functions, rename "offline" package to "backend"

This commit is contained in:
2024-04-15 18:16:05 -04:00
parent 53e0799a4a
commit 257a698b88
19 changed files with 834 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build !windows
package backend
// EntryRoot path to libmutton entry directory
var EntryRoot = home + "/.local/share/libmutton"
var ConfigDir = home + "/.config/libmutton"
var ConfigPath = ConfigDir + "/libmutton.ini"
// PathSeparator defines the character used to separate directories in a path (platform-specific)
const (
PathSeparator = "/"
Windows = false // TODO temporary, remove after native sync is implemented
)