Package endian provides tools for working with the Little Endian and Big Endian data (such as reading it, and writing it), or in other words translating to and from numbers and byte sequences using Little Endian and Big Endian encodings, for the Go programming language.
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-endian