You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
golang-tutorial/demo/map-002.go

18 lines
278 B

package main
import (
"fmt"
)
func main() {
personSalary := map[string]int{
"steve": 1200,
"jamin": 1500,
}
personSalary["Tinywan"] = 20000
fmt.Println("print All map")
for key, value := range personSalary {
fmt.Printf("personSalary[%s] = %d \n", key, value)
}
}