Skip to content

Instantly share code, notes, and snippets.

@tranphuoctien
Created February 23, 2018 07:54
Show Gist options
  • Save tranphuoctien/0ccb7fc11eb9e04670b12c882325b881 to your computer and use it in GitHub Desktop.
Save tranphuoctien/0ccb7fc11eb9e04670b12c882325b881 to your computer and use it in GitHub Desktop.
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