summaryrefslogtreecommitdiff
path: root/pkg/binstruct/binint.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 13:18:30 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-07-10 13:35:20 -0600
commit27401b6ea459921a6152ab1744da1618358465f4 (patch)
tree2c4f9c096f1a593e65d7f824901e815ca48bfaf0 /pkg/binstruct/binint.go
parent42f6f78e0a32ba0eda707154f8e1ffb4579604ee (diff)
Rename the module, mv pkg lib
Diffstat (limited to 'pkg/binstruct/binint.go')
-rw-r--r--pkg/binstruct/binint.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/pkg/binstruct/binint.go b/pkg/binstruct/binint.go
deleted file mode 100644
index 105dcfa..0000000
--- a/pkg/binstruct/binint.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package binstruct
-
-import (
- "reflect"
-
- "lukeshu.com/btrfs-tools/pkg/binstruct/binint"
-)
-
-type (
- U8 = binint.U8
- U16le = binint.U16le
- U32le = binint.U32le
- U64le = binint.U64le
- U16be = binint.U16be
- U32be = binint.U32be
- U64be = binint.U64be
- I8 = binint.I8
- I16le = binint.I16le
- I32le = binint.I32le
- I64le = binint.I64le
- I16be = binint.I16be
- I32be = binint.I32be
- I64be = binint.I64be
-)
-
-var intKind2Type = map[reflect.Kind]reflect.Type{
- reflect.Uint8: reflect.TypeOf(U8(0)),
- reflect.Int8: reflect.TypeOf(I8(0)),
- reflect.Uint16: reflect.TypeOf(U16le(0)),
- reflect.Int16: reflect.TypeOf(I16le(0)),
- reflect.Uint32: reflect.TypeOf(U32le(0)),
- reflect.Int32: reflect.TypeOf(I32le(0)),
- reflect.Uint64: reflect.TypeOf(U64le(0)),
- reflect.Int64: reflect.TypeOf(I64le(0)),
-}