1
0
Fork 0
mirror of https://github.com/vbatts/talks.git synced 2025-05-24 13:52:30 +00:00

2015-devnation: copying devconf talk

This commit is contained in:
Vincent Batts 2015-06-11 18:28:27 -04:00
parent 5149d7ec5e
commit 65363d37c3
18 changed files with 482 additions and 0 deletions

View file

@ -0,0 +1,25 @@
// +build ignore
package main
import "fmt"
func main() {
// START1 OMIT
names := []string{
"Michael",
"Jan",
"Sean",
"Silvia",
}
for i, name := range names {
fmt.Printf("%q is the %d name\n", name, i)
}
for i := range names {
fmt.Printf("%q is the %d name\n", names[i], i)
}
for _, name := range names {
fmt.Printf("%q is the ... name\n", name)
}
// STOP1 OMIT
}