Implement route rules
This commit is contained in:
17
constant/path_unix.go
Normal file
17
constant/path_unix.go
Normal file
@@ -0,0 +1,17 @@
|
||||
//go:build unix
|
||||
|
||||
package constant
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func init() {
|
||||
resourcePaths = append(resourcePaths, "/etc/config")
|
||||
resourcePaths = append(resourcePaths, "/usr/share")
|
||||
resourcePaths = append(resourcePaths, "/usr/local/etc/config")
|
||||
resourcePaths = append(resourcePaths, "/usr/local/share")
|
||||
if homeDir := os.Getenv("HOME"); homeDir != "" {
|
||||
resourcePaths = append(resourcePaths, homeDir+"/.local/share")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user