mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-02 07:07:24 -04:00
Split into separate packages
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package offline
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// global variables used across multiple files
|
||||
var (
|
||||
home, _ = os.UserHomeDir()
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package offline
|
||||
|
||||
// EntryRoot path to libmutton entry directory
|
||||
var EntryRoot = home + "/.local/share/libmutton"
|
||||
|
||||
// exported constants
|
||||
const (
|
||||
PathSeparator = "/"
|
||||
Windows = false
|
||||
)
|
||||
@@ -0,0 +1,12 @@
|
||||
//go:build windows
|
||||
|
||||
package offline
|
||||
|
||||
// EntryRoot path to libmutton entry directory
|
||||
var EntryRoot = home + "\\AppData\\Local\\libmutton\\entries"
|
||||
|
||||
// exported constants
|
||||
const (
|
||||
PathSeparator = "\\"
|
||||
Windows = true
|
||||
)
|
||||
Reference in New Issue
Block a user