doc.go 379 B

123456789101112131415
  1. // Package nlenc implements encoding and decoding functions for netlink
  2. // messages and attributes.
  3. package nlenc
  4. import (
  5. "encoding/binary"
  6. "github.com/josharian/native"
  7. )
  8. // NativeEndian returns the native byte order of this system.
  9. func NativeEndian() binary.ByteOrder {
  10. // TODO(mdlayher): consider deprecating and removing this function for v2.
  11. return native.Endian
  12. }