我正在尝试创建一个(golang)结构来处理通过http发送的水手长警报。它包含警报详细信息,最重要的是,有关相应主机的eth0IP地址。/*Thisstructisdefinedasperthenotificationdefinedinbosunconfig*/typeBosunAlertstruct{AckUrlstring`json:"ack"`AlertNamestring`json:"alert_name"`LastStatusstring`json:"last_status"`IpMac[]string`json:"ip,omitempty"`}相应的模板如下所示:temp