Documentation ¶ Index ¶ func DecodeInt(b bytes.Buffer) (int, error) func EncodeInt(a int) ([]byte, error) type GobEncoding Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DecodeInt ¶ func DecodeInt(b bytes.Buffer) (int, error) Decodes a buffer to integer usign Gob decoder func EncodeInt ¶ func EncodeInt(a int) ([]byte, error) Encodes the given integer using Gob encoder Types ¶ type GobEncoding ¶ type GobEncoding interface { // Encodes the given integer using Gob encoder EncodeInt(int) ([]byte, error) // Decodes a buffer to integer usign Gob decoder DecodeInt(bytes.Buffer) (int, error) } Gob encoding helper interface Source Files ¶ View all Source files gob.go Click to show internal directories. Click to hide internal directories.