fsutils

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 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

func GetProjectRoot() string

func IsDir

func IsDir(filename string) bool

Types

type PathResolveResult

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

func (PathResolveResult) Dirs

func (prr PathResolveResult) Dirs() []string

func (PathResolveResult) Files

func (prr PathResolveResult) Files() []string

type PathResolver

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

func NewPathResolver

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

func (PathResolver) Resolve

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

type ProjectPaths

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

func GetPathsForAnalysis

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

func (ProjectPaths) FilesGrouppedByDirs

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

func (ProjectPaths) MixedPaths

func (p ProjectPaths) MixedPaths() []string

Jump to

Keyboard shortcuts

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