Documentation
¶
Overview ¶
Package stack defines supported technology stacks and detects the active stack for a Go project (portsmith.yaml, go.mod, or explicit flag).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindProjectRoot ¶
FindProjectRoot walks upward from startDir until a directory containing go.mod is found.
Types ¶
type Stack ¶
type Stack string
Stack identifies HTTP + persistence choices for scaffolding and lint rules.
func Detect ¶
Detect returns the stack for a project root (directory that contains go.mod). Priority: portsmith.yaml → go.mod heuristics → GinGORM.
func Resolve ¶
Resolve returns the stack to use: explicit flag wins, else Detect from project root of pkgDir.
func ResolveFromWD ¶
ResolveFromWD is like Resolve but uses the current working directory as the start point for finding go.mod (for commands that are not tied to a single package path).