Help us shape the future of Go! Take the 2026 Go Developer Survey

detect

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(root string, exts []string) ([]string, error)

Collect walks root recursively, returning all files whose extension matches one of the provided exts (e.g. ".go", ".md"). Paths matching patterns in a .velignore file at root are excluded. exts may be nil/empty to collect all files regardless of extension.

func EnsureVelignore

func EnsureVelignore(root string) (string, error)

EnsureVelignore creates a .velignore file at root if it doesn't exist. Returns the path to the created file or empty string if already exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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