Archiving a bunch of old stuff
This commit is contained in:
13
oldstuff/gotime/gotour-artifacts/ranges/main.go
Normal file
13
oldstuff/gotime/gotour-artifacts/ranges/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
pow := make([]int, 10)
|
||||
for i := range pow {
|
||||
pow[i] = 1 << uint(i)
|
||||
}
|
||||
for _, value := range pow {
|
||||
fmt.Printf("%d\n", value)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user