diff --git a/examples.txt b/examples.txt index 5b3c8ce..168b43a 100644 --- a/examples.txt +++ b/examples.txt @@ -20,7 +20,6 @@ Methods # Interfaces # Embedding # Errors -# OK Guards Goroutines Channels Channel Buffering diff --git a/examples/ok-guards/ok-guards.go b/examples/ok-guards/ok-guards.go deleted file mode 100644 index ab59e99..0000000 --- a/examples/ok-guards/ok-guards.go +++ /dev/null @@ -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