Skip to content

tsuna/endian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

endian GoDoc

A small golang library to help deal with host-to-network and network-to-host endianness conversion

Disclaimer

Before using this library, please read and understand Rob Pike's blog post on the byte order fallacy. Long story short, whenever you need to worry about whether or not your code is running on a little endian or big endian machine, chances are you're wrong in your approach and should instead really be thinking about writing the code in an endianness-agnostic way, as Rob shows in his blog post.

In the limited cases where you do need to swap bytes around (perhaps because you call into a library that is "doing it wrong"), this small library can help.

About

A small golang library to help deal with host-to-network and network-to-host endianness conversion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages