Skip to content

Commit d8a4982

Browse files
committed
fix compatibility with go 1.17
1 parent 8596d91 commit d8a4982

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

internal/encoder/dictionary.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ func sortStrings(ss []string) {
3030
}
3131
}
3232

33-
//go:nosplit
3433
func (e *Encoder) encodeDictionary(data map[string]interface{}) error {
3534
e.grow(1)
3635
e.writeByte('d')

internal/encoder/encoder.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ func (e *Encoder) writeByte(data byte) {
6767
e.offset++
6868
}
6969

70-
//go:nosplit
7170
func (e *Encoder) EncodeTo(dst []byte, data interface{}) ([]byte, error) {
7271
if cap(dst) > len(dst) {
7372
dst = dst[:cap(dst)]
@@ -83,7 +82,6 @@ func (e *Encoder) EncodeTo(dst []byte, data interface{}) ([]byte, error) {
8382
return e.buffer[:e.offset], nil
8483
}
8584

86-
//go:nosplit
8785
func (e *Encoder) encode(data interface{}) error {
8886
switch value := data.(type) {
8987
case int64:

internal/encoder/list.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package encoder
22

3-
//go:nosplit
43
func (e *Encoder) encodeList(data []interface{}) error {
54
e.grow(1)
65
e.writeByte('l')

0 commit comments

Comments
 (0)