Skip to content

Instantly share code, notes, and snippets.

@jswank
Created December 6, 2011 17:21
Show Gist options
  • Select an option

  • Save jswank/1439033 to your computer and use it in GitHub Desktop.

Select an option

Save jswank/1439033 to your computer and use it in GitHub Desktop.

Revisions

  1. jswank created this gist Dec 6, 2011.
    13 changes: 13 additions & 0 deletions example.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    package main

    import "fmt"

    func main() {

    m := make(map[string]string)
    if m["foo"] == "" {
    fmt.Println("No such key in map");
    }
    fmt.Printf("%s", m)

    }