summaryrefslogtreecommitdiff
path: root/pkg/binstruct/l1.go
diff options
context:
space:
mode:
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 {