walk

package
v0.0.0-...-7014987 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoFiles

func GoFiles(root string, option Option, visitor func(path string) error) error

GoFiles walks through the directory `root` and calls the visitor on every `.go` file. See available Options for more configuration.

Types

type Option

type Option func(*walkFilesOptions)

func WithIgnoreDirs

func WithIgnoreDirs(dirs ...string) Option

func WithIgnoreTests

func WithIgnoreTests(ignoreTests bool) Option

func WithOptions

func WithOptions(options ...Option) Option

Jump to

Keyboard shortcuts

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