dirwalk

package
v0.0.0-...-b5dce0d Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: BSD-3-Clause, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkGoFolders

func WalkGoFolders(root string, cb WalkFunc) error

WalkGoFolders will call cb for every folder with Go code under the given root path, unless it's: - one of "vendor", "Godeps", "node_modules", "testdata", "internal" - starts with "." or "_" - is a test package, i.e. ends with _test

Types

type WalkFunc

type WalkFunc func(path string) error

WalkFunc defines the prototype for WalkGoFolders's callback. the error passed as the return value of the undrelying filepath.Walk

Jump to

Keyboard shortcuts

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