{"modulePath":"github.com/alecthomas/binary","version":"v0.0.0-20231202071617-9b43cc962409","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package binary\n\n## Variables\n\n```go\nvar (\n\tLittleEndian  = binary.LittleEndian\n\tBigEndian     = binary.BigEndian\n\tDefaultEndian = LittleEndian\n)\n```\n\n## Functions\n\n```go\nfunc Marshal(v interface{}) ([]byte, error)\n```\n\n```go\nfunc Unmarshal(b []byte, v interface{}) error\n```\n\n## Types\n\n```go\ntype Decoder struct {\n\tOrder binary.ByteOrder\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewDecoder(r io.Reader) *Decoder\n```\n\n```go\nfunc (d *Decoder) Decode(v interface{}) (err error)\n```\n\n```go\ntype Encoder struct {\n\tOrder binary.ByteOrder\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEncoder(w io.Writer) *Encoder\n```\n\n```go\nfunc NewStrictEncoder(w io.Writer) *Encoder\n```\nNewStrictEncoder creates an encoder similar to NewEncoder, however if this encoder attempts to encode a struct and the struct has no encodable fields an error is returned whereas the encoder returned from NewEncoder will simply not write anything to \\`w\\`.\n\n```go\nfunc (b *Encoder) Encode(v interface{}) (err error)\n```\n\n","path":"github.com/alecthomas/binary","name":"binary","synopsis":"","isRedistributable":true}
