mirror of https://github.com/goccy/go-json.git
Fix lint error
This commit is contained in:
parent
4cade6589b
commit
87b93ad8a4
|
@ -2630,8 +2630,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
code = code.Next
|
||||
}
|
||||
case encoder.OpStructPtrHeadNumberPtr:
|
||||
|
@ -2787,8 +2787,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructPtrHeadArray, encoder.OpStructPtrHeadSlice:
|
||||
|
@ -4039,8 +4039,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldNumberPtr:
|
||||
|
@ -4096,8 +4096,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldMarshalJSON:
|
||||
|
@ -4975,8 +4975,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
@ -5036,8 +5036,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
|
|
@ -2643,8 +2643,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
code = code.Next
|
||||
}
|
||||
case encoder.OpStructPtrHeadNumberPtr:
|
||||
|
@ -2800,8 +2800,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructPtrHeadArray, encoder.OpStructPtrHeadSlice:
|
||||
|
@ -4052,8 +4052,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldNumberPtr:
|
||||
|
@ -4109,8 +4109,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldMarshalJSON:
|
||||
|
@ -4988,8 +4988,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
@ -5049,8 +5049,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
|
|
@ -2630,8 +2630,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
code = code.Next
|
||||
}
|
||||
case encoder.OpStructPtrHeadNumberPtr:
|
||||
|
@ -2787,8 +2787,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructPtrHeadArray, encoder.OpStructPtrHeadSlice:
|
||||
|
@ -4039,8 +4039,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldNumberPtr:
|
||||
|
@ -4096,8 +4096,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldMarshalJSON:
|
||||
|
@ -4975,8 +4975,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
@ -5036,8 +5036,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(b)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(b)
|
||||
}
|
||||
|
|
|
@ -2754,8 +2754,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
code = code.Next
|
||||
}
|
||||
case encoder.OpStructPtrHeadNumberPtr:
|
||||
|
@ -2918,8 +2918,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructPtrHeadArray, encoder.OpStructPtrHeadSlice:
|
||||
|
@ -4302,8 +4302,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldNumberPtr:
|
||||
|
@ -4366,8 +4366,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldMarshalJSON:
|
||||
|
@ -5399,8 +5399,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(ctx, bb, code.Indent-1)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(ctx, b, code.Indent-1)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(ctx, b, code)
|
||||
}
|
||||
|
@ -5467,8 +5467,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(ctx, bb, code.Indent-1)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(ctx, b, code.Indent-1)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(ctx, b, code)
|
||||
}
|
||||
|
|
|
@ -2754,8 +2754,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
code = code.Next
|
||||
}
|
||||
case encoder.OpStructPtrHeadNumberPtr:
|
||||
|
@ -2918,8 +2918,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructPtrHeadArray, encoder.OpStructPtrHeadSlice:
|
||||
|
@ -4302,8 +4302,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldNumberPtr:
|
||||
|
@ -4366,8 +4366,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendComma(bb)
|
||||
b = append(bb, '"')
|
||||
b = appendComma(b)
|
||||
}
|
||||
code = code.Next
|
||||
case encoder.OpStructFieldMarshalJSON:
|
||||
|
@ -5399,8 +5399,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(ctx, bb, code.Indent-1)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(ctx, b, code.Indent-1)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(ctx, b, code)
|
||||
}
|
||||
|
@ -5467,8 +5467,8 @@ func Run(ctx *encoder.RuntimeContext, b []byte, codeSet *encoder.OpcodeSet, opt
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
b = append(b, '"')
|
||||
b = appendStructEnd(ctx, bb, code.Indent-1)
|
||||
b = append(bb, '"')
|
||||
b = appendStructEnd(ctx, b, code.Indent-1)
|
||||
} else {
|
||||
b = appendStructEndSkipLast(ctx, b, code)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue