- Building Microservices with Go
- Nic Jackson
- 99字
- 2021-07-15 17:28:02
Reading and writing JSON
Thanks to the encoding /json package, which is built into the standard library encoding and decoding JSON to and from Go types is both fast and easy. It implements the simplistic Marshal and Unmarshal functions; however, if we need them, the package also provides Encoder and Decoder types that allow us greater control when reading and writing streams of JSON data. In this section, we are going to examine both of these approaches, but first let's take a look at how simple it is to convert a standard Go struct into its corresponding JSON string.
推薦閱讀
- Java EE 6 企業(yè)級應(yīng)用開發(fā)教程
- 軟件測試工程師面試秘籍
- Python高級編程
- Visual C++串口通信技術(shù)詳解(第2版)
- Processing互動編程藝術(shù)
- Visual FoxPro程序設(shè)計習題集及實驗指導(dǎo)(第四版)
- Unity 2017 Mobile Game Development
- Domain-Driven Design in PHP
- SEO教程:搜索引擎優(yōu)化入門與進階(第3版)
- Mastering Apache Camel
- Kotlin進階實戰(zhàn)
- Kotlin程序員面試算法寶典
- Swift Essentials(Second Edition)
- Implementing Splunk(Second Edition)
- Node.js進階之路