drop ok-guards for now

This commit is contained in:
Mark McGranaghan 2012-10-25 21:24:22 -04:00
parent 6e5585ff65
commit 9e8d0127d4
2 changed files with 0 additions and 21 deletions

View File

@ -20,7 +20,6 @@ Methods
# Interfaces # Interfaces
# Embedding # Embedding
# Errors # Errors
# OK Guards
Goroutines Goroutines
Channels Channels
Channel Buffering Channel Buffering

View File

@ -1,20 +0,0 @@
package main
import "fmt"
func main() {
x := make(map[string]string)
x["here"] = "yes"
if name, ok := x["?"]; ok {
fmt.Println(name)
} else {
fmt.Println("miss")
}
if name, ok := x["here"]; ok {
fmt.Println(name)
}
}
// todo: note about use with errors