native

package module
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 2 Imported by: 24

README

native Go Reference

Package native provides easy access to native byte order.

go get github.com/josharian/native

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.

Documentation

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

Constants

View Source
const IsBigEndian = cpu.IsBigEndian

IsBigEndian records whether the GOARCH's byte order is big endian.

Deprecated: use golang.org/x/sys/cpu.IsBigEndian instead, now that it exists.

Variables

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL