package main
import (
"fmt"
)
func main() {
product := map[string]interface{}{
"id": "st01",
"name": "name 1",
"price": 5.6,
"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