util

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitRepositoryRoot

func FindGitRepositoryRoot() (string, error)

func IsBaseFilename

func IsBaseFilename(filePath string) bool

func IsRelativePath

func IsRelativePath(filePath string) bool

Types

type IgnoreContext

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

func NewIgnoreContext

func NewIgnoreContext(ignoreFilename string) IgnoreContext

func (IgnoreContext) ShouldIgnore

func (i IgnoreContext) ShouldIgnore(path string, fi os.FileInfo) bool

Jump to

Keyboard shortcuts

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