fsutils

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProjectRoot added in v1.2.1

func GetProjectRoot() string

func IsDir

func IsDir(filename string) bool

Types

type PathResolveResult added in v1.2.1

type PathResolveResult struct {
	// contains filtered or unexported fields
}

func (PathResolveResult) Dirs added in v1.2.1

func (prr PathResolveResult) Dirs() []string

func (PathResolveResult) Files added in v1.2.1

func (prr PathResolveResult) Files() []string

type PathResolver added in v1.2.1

type PathResolver struct {
	// contains filtered or unexported fields
}

func NewPathResolver added in v1.2.1

func NewPathResolver(excludeDirs, allowedFileExtensions []string, includeTests bool) *PathResolver

func (PathResolver) Resolve added in v1.2.1

func (pr PathResolver) Resolve(paths ...string) (*PathResolveResult, error)

type ProjectPaths added in v1.2.1

type ProjectPaths struct {
	Files     []string
	Dirs      []string
	IsDirsRun bool
}

func GetPathsForAnalysis added in v1.2.1

func GetPathsForAnalysis(ctx context.Context, inputPaths []string, includeTests bool) (ret *ProjectPaths, err error)

func (ProjectPaths) FilesGrouppedByDirs added in v1.2.1

func (p ProjectPaths) FilesGrouppedByDirs() [][]string

func (ProjectPaths) MixedPaths added in v1.2.1

func (p ProjectPaths) MixedPaths() []string

Jump to

Keyboard shortcuts

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