1 package test 2 3 import "encoding/json" 4 5 func init() { 6 unmarshalCases = append(unmarshalCases, unmarshalCase{ 7 ptr: (*json.Number)(nil), 8 input: `"500"`, 9 }, unmarshalCase{ 10 ptr: (*json.Number)(nil), 11 input: `1`, 12 }, unmarshalCase{ 13 ptr: (*json.Number)(nil), 14 input: `null`, 15 }) 16 marshalCases = append(marshalCases, json.Number("")) 17 } 18