You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-11-29 22:47:28 +02:00
fix golint: do not export test types
This commit is contained in:
@@ -8,12 +8,12 @@ import (
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
type T struct {
|
||||
type typeForTest struct {
|
||||
F *float64
|
||||
}
|
||||
|
||||
func main() {
|
||||
var obj T
|
||||
var obj typeForTest
|
||||
|
||||
jb1, _ := json.Marshal(obj)
|
||||
jb2, _ := jsoniter.ConfigCompatibleWithStandardLibrary.Marshal(obj)
|
||||
|
||||
Reference in New Issue
Block a user