gob package - encoding/gob - Go Packages
Package gob manages streams of gobs - binary values exchanged between an Encoder (transmitter) and a Decoder (receiver). A typical use is transporting arguments and results of remote procedure calls (RPCs) such as those provided by package "net/rpc". The implementation compiles a custom codec for each data type in the stream and is most efficient when a single Encoder is used to transmit a stream of values, amortizing the cost of compilation. A stream of gobs is self-describing. Each data item in the stream is preceded by a specification of its type, expressed in terms of a small set of predefined types. Pointers are not transmitted, but the things they point to are transmitted; that is, the values are flattened. Nil pointers are not permitted, as they have no value. Recursive types work fine, but recursive values (data with cycles) are problematic. This may change. To use gobs, create an Encoder and present it with a series of data items as values or addresses that can be dereferenced
Documentation ¶ Overview ¶ Basics Types and Values Encoding Details Security Package gob manages streams of gobs - binary values exchanged between an Encoder (transmitter) and a Decoder (receiver). A typical use is transporting arguments and results of remote procedure calls (RPCs) such as those provided by net/rpc . The implementation compiles a custom codec for each data type in the stream and is most efficient when a single Encoder is used to transmit a stream of values, amortizing the cost of compilation. Basics ¶ A stream of gobs is self-describing. Each data item in the stream is precede
Explore this link on the map →related reading
- Frequently Asked Questions (FAQ) - The Go Programming Languagego.dev
- Effective Go - The Go Programming Languagego.dev
- Four Days of Go – Evan Millerevanmiller.org
- The Go Programming Language Specification - The Go Programming Languagego.dev
- Go at Google: Language Design in the Service of Software Engineering - The Go Programming Languagego.dev
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Writing Better Go: Lessons from 10 Code Reviews - Speaker Deckspeakerdeck.com
- Go go-to guide · YourBasicyourbasic.org
- The Laws of Reflection - The Go Programming Languagego.dev
- rpc package - net/rpc - Go Packagespkg.go.dev
- Peter Bourgon · Go for Industrial Programmingpeter.bourgon.org
- Go类型系统概述 -Go语言101gfw.go101.org