GOLANG如何避免字串轉義

winlin發表於2017-06-23

避免轉義字元,例如造個json:

json.Unmarshal(`{"code":0, "data":{"server":"127.0.0.1:8080"}}`)

是不是太簡單了點,但是我好像並不總是記得。

相關文章