progress

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(d *Data) error

Types

type Data

type Data struct {
	Completed       []string `json:"completed"`
	InProgress      string   `json:"in_progress,omitempty"`
	LastCompletedAt string   `json:"last_completed_at,omitempty"`
}

func Load

func Load() (*Data, error)

func (*Data) Complete

func (d *Data) Complete(name string)

func (*Data) IsCompleted

func (d *Data) IsCompleted(name string) bool

type FileStore

type FileStore struct{}

func NewFileStore

func NewFileStore() *FileStore

func (*FileStore) Load

func (s *FileStore) Load() (*Data, error)

func (*FileStore) Save

func (s *FileStore) Save(d *Data) error

type Store

type Store interface {
	Load() (*Data, error)
	Save(*Data) error
}

Jump to

Keyboard shortcuts

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