modfiles

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package modfiles enumerates Go source files owned by this module while excluding structural directories and nested repository or module boundaries.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(root string) ([]string, error)

Files returns absolute paths to every module-owned Go source file below root. Build constraints are deliberately ignored so tagged production files remain visible to dependency and formatting checks.

func WriteNull

func WriteNull(w io.Writer, paths []string) error

WriteNull writes paths separated and terminated by NUL bytes for safe piping to tools such as xargs -0, including when a filename contains whitespace or newlines.

Types

type SymlinkError

type SymlinkError struct {
	Path string
}

SymlinkError reports a module-owned Go source path that is a symbolic link. Discovery fails closed rather than following a link that may escape the module.

func (*SymlinkError) Error

func (e *SymlinkError) Error() string

Directories

Path Synopsis
cmd
modfiles command

Jump to

Keyboard shortcuts

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