package main
import (
"fmt"
)
type Test struct {
Name string
Pid map[string]*CPCPrice
}
type CPCPrice struct {
Price map[string]uint32
}
func main() {
dataA := make(map[string]*CPCPrice)
priceA := make(map[string]uint32)
priceA["sousuo"] = uint32(10)
priceA["zhanshi"] = uint32(20)
//fmt.Println(priceA)
t := Test{}
t.Pid["test"].Price = priceA
fmt.Println(t)
}
有疑问加站长微信联系(非本文作者)