1
0
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:
Tao Wen
2017-07-09 11:40:45 +08:00
parent ad20f12c34
commit 891d33b415
501 changed files with 1748 additions and 1748 deletions

View File

@@ -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)