Exemplo n.º 1
0
func AdjustBy(top, bottom int) func(model Model) Model {
	return func(model Model) Model {
		return Model{
			top:    counter.Init(int(model.top) + top),
			bottom: counter.Init(int(model.bottom) + bottom),
		}
	}
}
Exemplo n.º 2
0
func Init(top, bottom int) Model {
	return Model{
		top:    counter.Init(top),
		bottom: counter.Init(bottom),
	}
}