forked from TrueCloudLab/neoneo-go
f000b76879
* [FIX] Formatting and code-style - gofmt - import resort - prealloc slices - simplify code * fix vet
9 lines
178 B
Go
9 lines
178 B
Go
package payload
|
|
|
|
import "io"
|
|
|
|
// Payload is anything that can be binary encoded/decoded.
|
|
type Payload interface {
|
|
EncodeBinary(io.Writer) error
|
|
DecodeBinary(io.Reader) error
|
|
}
|