util

package
v0.0.0-...-5b1548f Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WalkerDefaultMinSize int64 = 4096

Functions

func ExpandTilde

func ExpandTilde(path string) string

ExpandTilde replaces an initial "~/" in the given path with the current user's home directory. It is intended as a convenience for those cases where the provided path does not come from a shell, which would otherwise handle the expansion.

Types

type Walker

type Walker struct {
	Exclude, Include []string
	MinSize          int64
}

func NewDefaultWalker

func NewDefaultWalker() *Walker

func (*Walker) Walk

func (w *Walker) Walk(root string, walkFn filepath.WalkFunc) error

Jump to

Keyboard shortcuts

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