fs

package
v0.0.0-...-7fb1479 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAbsolute

func CleanAbsolute(path string) (string, error)

func WalkFiles

func WalkFiles(paths Paths) <-chan *PathElem

Types

type Files

type Files map[string]struct{}

type PathElem

type PathElem struct {
	Err  error
	Path string
	Info os.FileInfo
}

type Paths

type Paths map[string]struct{}

func AggregateLogErrors

func AggregateLogErrors(c <-chan *PathElem, l *log.Logger) Paths

func NewPaths

func NewPaths(paths ...string) (Paths, error)

func WorkingDirectory

func WorkingDirectory() (Paths, error)

func (Paths) Add

func (p Paths) Add(path string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL