walker

package
v0.0.0-...-6c3c54b Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenizedFile

type TokenizedFile struct {
	FileName    string
	TokenLength int
}

type Walker

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

func New

func New(os afero.Fs, currentPath string, writer afero.File, verbose bool, ingnores ...string) *Walker

func (*Walker) CalculateTokens

func (w *Walker) CalculateTokens() (int64, error)

func (*Walker) GetGitIgnores

func (w *Walker) GetGitIgnores() ([]string, error)

func (*Walker) GetTokens

func (w *Walker) GetTokens() int64

func (*Walker) Ignore

func (w *Walker) Ignore(path string) bool

func (*Walker) Tokenizers

func (w *Walker) Tokenizers() map[string]TokenizedFile

func (*Walker) Walk

func (w *Walker) Walk() (afero.File, error)

Jump to

Keyboard shortcuts

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