4.4.4-4 内置复合类型
最后更新于
type Map struct {
key, elem Type
}type Chan struct {
dir ChanDir
elem Type
}
// A ChanDir value indicates a channel direction.
type ChanDir int
// The direction of a channel is indicated by one of these constants.
const (
SendRecv ChanDir = iota
SendOnly
RecvOnly
)type Pointer struct {
base Type // element type
}