netgob

module
v0.0.0-...-157642e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2017 License: BSD-3-Clause

README

netgob - gob encoding with channels

GoDoc

Package netgob is a replacement for Go's gob package that also supports encoding/decoding of channels. Package netgob can be used to marshal channels in networking scenarios; the netchan library uses netgob for this purpose.

This is accomplished through the use of the new NetgobEncoder and NetgobDecoder interfaces. When netgob sees a channel during encoding/decoding it calls one of these interfaces. A marshaling layer can implement these interfaces to convert channels to marshaling references and vice-versa.

The same technique could be used to encode/decode functions, although netgob does not support them at this time.

Usage

To use netgob simply:

import (
    "github.com/billziss-gh/netgob/gob"
)

Directories

Path Synopsis
Package netgob is a replacement for Go's gob package that also supports encoding/decoding of channels.
Package netgob is a replacement for Go's gob package that also supports encoding/decoding of channels.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL