a package for working with ranges in golang
In order to start, go get
this repository:
go get github.com/schwarmco/go-expanding
import (
"fmt"
"github.com/schwarmco/go-expanding"
)
func main() {
a := expanding.Integer{
Min: 0,
Max: 10,
Step: 2,
}
fmt.Println(a.Expand())
a.Step = 3
fmt.Println(a.Expand())
// Output:
// [0 2 4 6 8 10]
// [0 3 6 9]
}