state

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(st *State) error

Save writes the state to the default clstr.yaml file.

func SaveTo

func SaveTo(st *State, path string) error

SaveTo writes the state to the specified path.

Types

type State

type State struct {
	Challenge string `yaml:"challenge"`
	Stage     string `yaml:"stage"`
}

State represents the challenge progress.

func Load

func Load() (*State, error)

Load reads and parses the clstr.yaml file.

Jump to

Keyboard shortcuts

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