【发布时间】:2021-12-17 23:21:41
【问题描述】:
我是 Golang 的新手。 这是我要加载的结构,问题是存在我不知道如何从 Mysql 填充的 map [string] ChannelST
type StreamST struct {
Name string
Channels map[string]ChannelST
}
type ChannelST struct {
Name string
URL string
OnDemand bool
Debug bool
Status int
runLock bool
codecs []av.CodecData
sdp []byte
signals chan int
hlsSegmentBuffer map[int]SegmentOld
hlsSegmentNumber int
clients map[string]ClientST
ack time.Time
【问题讨论】:
标签: mysql dictionary go