a41f938cec
As we have seen, dependencies version can prevent the build. We should user lock versions on dependencies that we know work: * Packages are vendored * Add Godep support * Added addtional install step in readme * Fix travis build error
17 lignes
404 o
Go
17 lignes
404 o
Go
// Package iter provides a syntantically different way to iterate over integers. That's it.
|
|
package iter
|
|
|
|
// N returns a slice of n 0-sized elements, suitable for ranging over.
|
|
//
|
|
// For example:
|
|
//
|
|
// for i := range iter.N(10) {
|
|
// fmt.Println(i)
|
|
// }
|
|
//
|
|
// ... will print 0 to 9, inclusive.
|
|
//
|
|
// It does not cause any allocations.
|
|
func N(n int) []struct{} {
|
|
return make([]struct{}, n)
|
|
}
|