Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOutputs []string = []string{ string(OutputInteractive), string(OutputTable), string(OutputJSON), string(OutputCSV), }
View Source
var Version string = "unknown"
Functions ¶
Types ¶
type EnvSource ¶
type EnvSource struct {
// contains filtered or unexported fields
}
func NewEnvSource ¶
type Filesystem ¶
type OsFilesystem ¶
type OsFilesystem struct{}
func (*OsFilesystem) GetAbsolutePath ¶
func (*OsFilesystem) GetAbsolutePath(path string) string
func (*OsFilesystem) PathStatus ¶
func (f *OsFilesystem) PathStatus(path string) (bool, bool)
returns (exists, isDir)
type ResultRow ¶
type ResultRow struct {
Id int `json:"id"`
Path string `json:"path"`
ExpandedPath string `json:"expanded_path"`
Exists bool `json:"exists"`
IsDir bool `json:"is_dir"`
Duplicates []int `json:"duplicates"`
}
func CalculateResults ¶
func CalculateResults(fs Filesystem, source ValueSource) ([]ResultRow, error)
type ValueSource ¶
Click to show internal directories.
Click to hide internal directories.