- 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.
推薦閱讀
- Getting Started with Gulp(Second Edition)
- ASP.NET Core 5.0開發入門與實戰
- JavaScript 網頁編程從入門到精通 (清華社"視頻大講堂"大系·網絡開發視頻大講堂)
- PyTorch Artificial Intelligence Fundamentals
- Designing Hyper-V Solutions
- Java面向對象程序開發及實戰
- Web全棧工程師的自我修養
- UML 基礎與 Rose 建模案例(第3版)
- 低代碼平臺開發實踐:基于React
- Scala Reactive Programming
- Python3.5從零開始學
- Java語言程序設計教程
- Python 3.7從入門到精通(視頻教學版)
- Learning Ionic
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)