aboutsummaryrefslogtreecommitdiffstats
path: root/src/exercises/exercise.go
blob: 2783381de305513c389007e15ef9deeb7c1bd40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package exercises

type Exercise struct {
	Name  string
	Path  string
	Mode  string
	Hint  string
	State State
}

type State int

const (
	Pending State = iota + 1
	Done
)

func (s State) String() string {
	return [...]string{"Pending", "Done"}[s-1]
}