Versions in this module Expand all Collapse all v0 v0.13.2 Oct 22, 2026 v0.13.1 Oct 19, 2026 v0.13.0 Oct 19, 2026 Changes in this version + const DocPath + const DocURL + var Dirs = []string + var ErrNotWorkspace = errors.New("not a tutorial workspace") + func CheckLesson(e *Env, l Lesson, w io.Writer) bool + func CheckWorkspace(dir string) error + func CommandLine(args []string) string + func File(name string) ([]byte, error) + func FileNames() []string + func Init(dir string, force bool, w io.Writer) error + func Run(e *Env, l Lesson, force bool, w, errw io.Writer) bool + func Show(w io.Writer, dir string, l Lesson, withFiles bool) + func Status(e *Env, inWorkspace bool, w io.Writer) bool + type Check struct + Hint string + Test func(e *Env) error + What string + type Command struct + Args []string + ExpectFail bool + Note string + type Env struct + Ctx context.Context + Dbc Runner + Dir string + type Lesson struct + Checks []Check + Commands []Command + Files []string + N int + Summary string + Title string + func Find(n int) (Lesson, bool) + func Lessons() []Lesson + func (l Lesson) Anchor() string + type Runner func(ctx context.Context, dir string, args []string, stdout, stderr io.Writer) (code int, err error) + func ExecRunner(bin string, env []string) Runner + type Written int + const Created + const Kept + const Replaced + func WriteFile(dir, name string, force bool) (Written, error)