[轉]Golang Gob編碼

Golang Gob編碼 2012-08-24 09:47 by 軒脈刃, 5119 閱讀, 1 評論, 收藏, 編輯 gob是Golang包自帶的一個數據結構序列化的編碼/解碼工具。編碼使用Encoder,解碼使用Decoder。一種典型的應用場景就是RPC(remote procedure calls)。 gob和json的pack之類的方法一樣,由發送端使用Encoder對數據結構進行編碼。
相關文章
相關標籤/搜索