...

Package native

import "github.com/josharian/native"
Overview
Index

Overview ▾

Package native provides easy access to native byte order.

Usage: use native.Endian where you need the native binary.ByteOrder.

Please think twice before using this package. It can break program portability. Native byte order is usually not the right answer.

Index ▾

Package files

doc.go endian_little.go

Constants

IsBigEndian is whether the current CPU's native byte order is big endian.

const IsBigEndian = false

Variables

Endian is the encoding/binary.ByteOrder implementation for the current CPU's native byte order.

var Endian = binary.LittleEndian