Documentation
¶
Index ¶
- Constants
- func AllRelativePathModes() []string
- func EvalSymlinks(path string) (string, error)
- func GetBasePath(ctx context.Context, mode, cfgDir string) (string, error)
- func Getwd() (string, error)
- func IsDir(filename string) bool
- func NormalizePathInRegex(path string) string
- func PrettifyBytesCount(n int64) string
- func ShortestRelPath(path, wd string) (string, error)
- func UseWdCache(use bool)
- type FileCache
- type LineCache
Constants ¶
View Source
const ( RelativePathModeGoMod = "gomod" RelativePathModeGitRoot = "gitroot" RelativePathModeCfg = "cfg" RelativePathModeWd = "wd" )
Relative path modes.
View Source
const OutputPathModeAbsolute = "abs"
OutputPathModeAbsolute path mode used to show absolute paths in output reports (user-facing).
Variables ¶
This section is empty.
Functions ¶
func AllRelativePathModes ¶
func AllRelativePathModes() []string
func EvalSymlinks ¶
func NormalizePathInRegex ¶
NormalizePathInRegex it's a noop function on Unix.
func PrettifyBytesCount ¶
func ShortestRelPath ¶
func UseWdCache ¶
func UseWdCache(use bool)
Types ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func NewFileCache ¶
func NewFileCache() *FileCache
func (*FileCache) PrintStats ¶
type LineCache ¶
type LineCache struct {
// contains filtered or unexported fields
}
func NewLineCache ¶
Click to show internal directories.
Click to hide internal directories.