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")
fmt.Println("id:", product["id"])
fmt.Println("name:", product["name"])
fmt.Println("price:", product["price"])
fmt.Println("status:", product["status"])
}
Output
Product Info
id: st01
name: name 1
price: 5.6
status: true