package main
import (
"fmt"
)
func main() {
product := make(map[string]interface{})
product["id"] = "st01"
product["name"] = "name 1"
product["price"] = 5.6
product["status"] = true
fmt.Println("Product Info")
for key, value := range product {
fmt.Println(key, " => ", value)
}
}
Output
Product Info
id => st01
name => name 1
price => 5.6
status => true