renumber again

This commit is contained in:
Mark McGranaghan
2012-09-23 13:29:28 -07:00
parent 1ef0ead109
commit ebe6383f98
118 changed files with 2 additions and 2 deletions

20
015-maps/maps.go Normal file
View File

@@ -0,0 +1,20 @@
// ## Maps
package main
import "fmt"
func main() {
x := make(map[string]int)
x["this"] = 7
x["that"] = 13
fmt.Println(x)
fmt.Println(x["this"])
fmt.Println(x["missing"])
fmt.Println(len(x))
delete(x, "that")
fmt.Println(x["that"])
fmt.Println(len(x))
_, present := x["that"]
fmt.Println(present)
}