summaryrefslogtreecommitdiff
path: root/pkg/binstruct/l1.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-05-30 12:00:39 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2022-05-30 12:00:39 -0400
commit8576e5f207f9d3b7c6324ed71a3ca6a005f9ae7c (patch)
tree1ff3001f73011a96aa603ec2eda7d29ce4885d47 /pkg/binstruct/l1.go
parent04d6677e52352a7e3ec791e3e817cfe3865e7d6d (diff)
ahhhh
Diffstat (limited to 'pkg/binstruct/l1.go')
-rw-r--r--pkg/binstruct/l1.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/binstruct/l1.go b/pkg/binstruct/l1.go
index 367dd28..4464f51 100644
--- a/pkg/binstruct/l1.go
+++ b/pkg/binstruct/l1.go
@@ -1,3 +1,6 @@
+//go:build old
+// +build old
+
package binstruct
import (
@@ -7,19 +10,16 @@ import (
)
type Marshaler interface {
- BinarySize() int64
MarshalBinary() []byte
}
type Unmarshaler interface {
- Marshaler
UnmarshalBinary([]byte)
}
type handler interface {
Unmarshal(dat []byte) interface{}
Marshal(val interface{}) []byte
- Size() int64
}
type extHandler struct {