JSON
包 encoding/json 包 json 實現了 Go 中 JSON 物件的編碼和解碼。
JSON 中的型別及其在 Go 中的相應具體型別是:
| JSON 型別 | Go 型別 |
|---|---|
boolean |
bool |
numbers |
float64 或 int |
string |
string |
null |
nill |
包 encoding/json 包 json 實現了 Go 中 JSON 物件的編碼和解碼。
JSON 中的型別及其在 Go 中的相應具體型別是:
| JSON 型別 | Go 型別 |
|---|---|
boolean |
bool |
numbers |
float64 或 int |
string |
string |
null |
nill |