13 lines
204 B
Go
13 lines
204 B
Go
package main
|
|
|
|
func main() {
|
|
dict := map[string]string{"bidule": "machin", "truc": "bidule"}
|
|
dict["hello"] = "bonjour"
|
|
println(dict["bidule"])
|
|
println(dict["hello"])
|
|
}
|
|
|
|
// Output:
|
|
// machin
|
|
// bonjour
|