state

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 3 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 lc.state 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
	Stage     string
}

State represents the challenge progress.

func Load

func Load() (*State, error)

Load reads and parses the lc.state file.

Jump to

Keyboard shortcuts

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