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

project

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package project bounds persistent state to an explicitly selected project root.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(root string) error

func Root

func Root(path string) (string, error)

func SafePath

func SafePath(root, path string) (string, error)

SafePath returns a Radar state location below root without following symlinks.

func StateRoot

func StateRoot(ctx context.Context, root string) string

StateRoot selects the directory holding .radar state. A linked Git worktree without its own initialized state shares the main worktree's state, so evidence and snapshots recorded by parallel agents are visible everywhere.

Types

type Config

type Config struct {
	Version     int  `json:"version"`
	NoTelemetry bool `json:"no_telemetry"`
}

func Read

func Read(root string) (Config, error)

Jump to

Keyboard shortcuts

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