detector

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, bool)

FindProjectRoot walks up the directory tree to find the project root

func IsVelocityProject

func IsVelocityProject() bool

IsVelocityProject checks if we're inside a Velocity project

Types

type ProjectInfo

type ProjectInfo struct {
	Path        string
	ModuleName  string
	GoVersion   string
	HasGoMod    bool
	HasVelocity bool
}

ProjectInfo contains information about an existing Go project

func Detect

func Detect(dir string) (*ProjectInfo, error)

Detect analyzes a directory to determine if it's a valid Go project

Jump to

Keyboard shortcuts

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