type Instrument struct {
Symbol string `json:"symbol"`
MarkPrice float64 `json:"mark_price"`
IndexPrice float64 `json:"index_price"`
}
func handleInstrument(symbol string, data []*ws.Instrument) {
log.Printf("handleInstrument %v / %+v", symbol, data)
}
打印出来是:2019/10/23 16:12:56 handleInstrument BTCUSD / [0xc0000fd3c0]
最后似乎是内存地址,而不是结构体的数据,我该怎么做?