Documentation ¶
Index ¶
- func EvalSymlinks(path 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)
- func WithPathPrefix(pathPrefix, relativePath string) string
- type FileCache
- type Files
- type LineCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalSymlinks ¶
func NormalizePathInRegex ¶
NormalizePathInRegex it's a noop function on Unix.
func PrettifyBytesCount ¶
func ShortestRelPath ¶
func UseWdCache ¶
func UseWdCache(use bool)
func WithPathPrefix ¶
WithPathPrefix takes a path that is relative to the current directory (as used in issues) and adds the configured path prefix, if there is one. The resulting path then can be shown to the user or compared against paths specified in the configuration.
Types ¶
type FileCache ¶
type FileCache struct {
// contains filtered or unexported fields
}
func NewFileCache ¶
func NewFileCache() *FileCache
func (*FileCache) PrintStats ¶
type Files ¶
type Files struct { *LineCache // contains filtered or unexported fields }
Files combines different operations related to handling file paths and content.
func (*Files) WithPathPrefix ¶
WithPathPrefix takes a path that is relative to the current directory (as used in issues) and adds the configured path prefix, if there is one. The resulting path then can be shown to the user or compared against paths specified in the configuration.
type LineCache ¶
type LineCache struct {
// contains filtered or unexported fields
}
func NewLineCache ¶
Click to show internal directories.
Click to hide internal directories.