targets

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExceededDepth = errors.New("exceeded maximum depth")

Functions

func Find

func Find(rootDir string, maxDepth uint8) ([]string, error)

func FindSingle

func FindSingle(path string) error

Types

type InputTarget

type InputTarget struct {
	Path  string `json:"path"`
	Depth uint8  `json:"depth"`
}

type Targets

type Targets struct {
	Buf *bytes.Buffer
}

func Collect

func Collect(input []InputTarget) (*Targets, error)

func New

func New() *Targets

func (*Targets) Collect

func (t *Targets) Collect(input []InputTarget) error

func (*Targets) Filter

func (t *Targets) Filter(filter string)

func (*Targets) Print

func (t *Targets) Print(w io.Writer) error

Jump to

Keyboard shortcuts

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