gomodutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGoModNotFound = errors.New("go.mod not found in directory tree")

ErrGoModNotFound is returned when no go.mod file can be found in the directory tree.

Functions

func FindGoModPath

func FindGoModPath() (string, error)

FindGoModPath searches for the go.mod file starting from the current working directory and walking up the directory tree until it finds go.mod or reaches the filesystem root. It returns the absolute path to the go.mod file, or ErrGoModNotFound if not found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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