您的
MonitorServerInfo类型是造成问题的原因。摆脱它,它的工作原理是:
type ConfigServer struct { ServerInfo []ServerInfoStrap `json:"monitor_servers_info"` ConnServer SentryServer `json:"sentry_server"` DeadTime string `json:"deadtime"`}游乐场:https://play.golang.org/p/Prt1j7ePCZ。



