Skip to content

Commit 2e40711

Browse files
committed
最后再实现Sugar语法糖相关的
1 parent 4050812 commit 2e40711

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

api.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package y3
22

33
import (
4+
"errors"
5+
46
"github.com/yomorun/y3-codec-golang/pkg/spec"
57
)
68

@@ -93,3 +95,8 @@ func EncodeBytes(tag int, v []byte) ([]byte, error) {
9395
p.PutBytes(v)
9496
return p.Encode()
9597
}
98+
99+
// Marshal TODO wip
100+
func Marshal(tag int, obj interface{}) ([]byte, error) {
101+
panic(errors.New("NotImplementedError"))
102+
}

0 commit comments

Comments
 (0)