๐Ÿ“ฆ wagoodman / go-progress

๐Ÿ“„ stage.go ยท 29 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29package progress

type Stager interface {
	Stage() string
}

type Stage struct {
	Current string
}

func (s Stage) Stage() string {
	return s.Current
}

type StagedMonitorable interface {
	Stager
	Monitorable
}

type StagedProgressable interface {
	Stager
	Progressable
}

type StagedProgressor interface {
	Stager
	Progressor
}