discover

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(fs afero.Fs, root string) (map[int][]ExerciseInfo, error)

Scan walks root looking for exercise directories containing info.json files. It returns exercises grouped by year, sorted by day within each year.

Types

type ExerciseInfo

type ExerciseInfo struct {
	Year  int
	Day   int
	Title string
	Path  string
	Langs []string
	HasP1 bool
	HasP2 bool
}

ExerciseInfo holds metadata about a discovered exercise directory.

Jump to

Keyboard shortcuts

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