Created
February 23, 2018 07:54
-
-
Save tranphuoctien/0ccb7fc11eb9e04670b12c882325b881 to your computer and use it in GitHub Desktop.
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][]string) | |
x["key"] = append(x["key"], "value") | |
x["key"] = append(x["key"], "value1") | |
fmt.Println(x["key"][0]) | |
fmt.Println(x["key"][1]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment