From d7a1eab5beba4241dab4402c5cd268432d7b46cd Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 21 Mar 2020 08:20:16 +1000 Subject: Migrate to Go111Modules, Add Dockerfile and GoRelaser support --- vendor/golang.org/x/sys/cpu/byteorder.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 vendor/golang.org/x/sys/cpu/byteorder.go (limited to 'vendor/golang.org/x/sys/cpu/byteorder.go') diff --git a/vendor/golang.org/x/sys/cpu/byteorder.go b/vendor/golang.org/x/sys/cpu/byteorder.go deleted file mode 100644 index da6b9e4..0000000 --- a/vendor/golang.org/x/sys/cpu/byteorder.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2019 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package cpu - -import ( - "encoding/binary" - "runtime" -) - -// hostByteOrder returns binary.LittleEndian on little-endian machines and -// binary.BigEndian on big-endian machines. -func hostByteOrder() binary.ByteOrder { - switch runtime.GOARCH { - case "386", "amd64", "amd64p32", - "arm", "arm64", - "mipsle", "mips64le", "mips64p32le", - "ppc64le", - "riscv", "riscv64": - return binary.LittleEndian - case "armbe", "arm64be", - "mips", "mips64", "mips64p32", - "ppc", "ppc64", - "s390", "s390x", - "sparc", "sparc64": - return binary.BigEndian - } - panic("unknown architecture") -} -- cgit v1.2.3