We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DOT requires all value and change types to be registered with encoding/gob to be able to be transmitted across the network.
encoding/gob
It is very easy to forget this. A typical encoding error is something like:
gob: type not registered for interface: types.Counter
The solution is to stick the following into both the server and client code:
import "encoding/gob" func init() { var zero types.Counter gob.Register(zero) }