Documentation
¶
Index ¶
- Variables
- func BaseConfigPath() string
- func CacheDir() string
- func EnsurePath(pathName string) error
- func FileExists(pathName string) bool
- func GetHome() string
- func InitLoggers(level log.Level)
- func LogPath() string
- func MetadataConfigPath() string
- func RandAlphaString(n int) string
- func UserCacheDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
var Version = "Unknown Version"
Functions ¶
func BaseConfigPath ¶
func BaseConfigPath() string
BaseConfigPath returns the root for our config folders.
func EnsurePath ¶
EnsurePath ensures the given filesystem path exists, if not it will create it.
func FileExists ¶
FileExists checks whether a file or folder exists in the filesystem, will follow symlinks and ensures the target exists too.
func MetadataConfigPath ¶
func MetadataConfigPath() string
MetadataConfigPath returns the config path for the md server
func RandAlphaString ¶
func UserCacheDir ¶
UserCacheDir returns the default root directory to use for user-specific cached data. Users should create their own application-specific subdirectory within this one and use that.
On Unix systems, it returns $XDG_CACHE_HOME as specified by https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.cache. On Darwin, it returns $HOME/Library/Caches. On Windows, it returns %LocalAppData%. On Plan 9, it returns $home/lib/cache.
If the location cannot be determined (for example, $HOME is not defined), then it will return an error.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package levenshtein is a Go implementation to calculate Levenshtein Distance.
|
Package levenshtein is a Go implementation to calculate Levenshtein Distance. |