Created
May 27, 2014 04:11
-
-
Save shockalotti/ca472f6f72eef7caad0c to your computer and use it in GitHub Desktop.
Go Golang - basic map usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main(){ | |
x:=make(map[string]int) | |
x["key"] = 10 | |
fmt.Println(x["key"]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment