File tree Expand file tree Collapse file tree 7 files changed +24
-37
lines changed Expand file tree Collapse file tree 7 files changed +24
-37
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,7 @@ module github.com/u-root/uio
2
2
3
3
go 1.15
4
4
5
- require golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664
5
+ require (
6
+ github.com/josharian/native v1.0.1-0.20221213033349-c1e37c09b531
7
+ golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664
8
+ )
Original file line number Diff line number Diff line change
1
+ github.com/josharian/native v1.0.1-0.20221213033349-c1e37c09b531 h1:3HNVAxEgGca1i23Ai/8DeCmibx02jBvTHAT11INaVfU =
2
+ github.com/josharian/native v1.0.1-0.20221213033349-c1e37c09b531 /go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w =
1
3
golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664 h1:wEZYwx+kK+KlZ0hpvP2Ls1Xr4+RWnlzGFwPP0aiDjIU =
2
4
golang.org/x/sys v0.0.0-20220622161953-175b2fd9d664 /go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg =
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Copyright 2018 the u-root Authors. All rights reserved
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
5
+ // Package ubinary provides a native endian binary.ByteOrder.
6
+ //
7
+ // Deprecated: use github.com/josharian/native instead.
8
+ package ubinary
9
+
10
+ import "github.com/josharian/native"
11
+
12
+ // NativeEndian is $GOARCH's implementation of byte order.
13
+ //
14
+ // Deprecated: use github.com/josharian/native.Endian. This package
15
+ // now just forwards to that one.
16
+ var NativeEndian = native .Endian
Original file line number Diff line number Diff line change 8
8
"encoding/binary"
9
9
"fmt"
10
10
11
- "github.com/u-root/uio/ubinary "
11
+ "github.com/josharian/native "
12
12
)
13
13
14
14
// Marshaler is the interface implemented by an object that can marshal itself
@@ -173,7 +173,7 @@ func NewBigEndianBuffer(b []byte) *Lexer {
173
173
func NewNativeEndianBuffer (b []byte ) * Lexer {
174
174
return & Lexer {
175
175
Buffer : NewBuffer (b ),
176
- order : ubinary . NativeEndian ,
176
+ order : native . Endian ,
177
177
}
178
178
}
179
179
You can’t perform that action at this time.
0 commit comments