experiments

package
v0.19.9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Experiment

type Experiment struct {
	Name    string    // Display name (without date prefix)
	Path    string    // Full path to directory
	Date    time.Time // Parsed date from folder name (if any)
	HasDate bool      // Whether folder has date prefix
	ModTime time.Time // Last modification time
}

Experiment represents a discovered or created experiment folder

func CreateExperiment

func CreateExperiment(baseDir, name string, datePrefix bool) (*Experiment, error)

CreateExperiment creates a new experiment folder If datePrefix is true, prepends YYYY-MM-DD- to the name Returns the created experiment

func FindExact

func FindExact(experiments []Experiment, name string) *Experiment

FindExact returns an experiment with exact name match (case-insensitive)

func FindOrCreate

func FindOrCreate(baseDir, query string, datePrefix bool) (*Experiment, bool, error)

FindOrCreate finds an existing experiment by fuzzy match or creates a new one Returns (experiment, created, error)

func FuzzyFind

func FuzzyFind(experiments []Experiment, query string) []Experiment

FuzzyFind returns experiments matching the query, sorted by relevance

func ListExperiments

func ListExperiments(dir string) ([]Experiment, error)

ListExperiments returns all experiment folders in the directory Sorted by modification time (most recent first)

Jump to

Keyboard shortcuts

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