package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Packages

Package pretty is a pretty-printer for state streams.
Package statefile defines the state file data stream.
Package wire contains a few basic types that can be composed to serialize graph information for the state package.

# Functions

Failf is a wrapper around panic that should be used to generate errors that can be caught during saving and loading.
IsZeroValue checks if the given value is the zero value.
Load loads a checkpoint.
ReadHeader reads an object header.
Register registers a type.
Release releases references to global type databases.
Save saves the given object state.
WriteHeader writes a header.

# Structs

ErrState is returned when an error is encountered during encode/decode.
Sink is used for Type.StateSave.
Source is used for Type.StateLoad.
Stats tracks encode / decode timing.

# Interfaces

SaverLoader must be implemented by struct types.
Type is an interface that must be implemented by Struct objects.