package main
import (
"fmt"
)
type product struct {
id int
name string
}
func main(){
fmt.Println("Hello ALLTEST")
p := product{id : 12, name:"apple"}
c := product{id : 13, name:"samsung"}
var pslice []product
pslice = append(pslice, p)
pslice = append(pslice, c)
d := map[string]interface{}{
"allproducts" : pslice,
}
f:= d["allproducts"]
fmt.Println("Output", f)