mirror of
https://github.com/json-iterator/go.git
synced 2025-04-20 11:28:49 +02:00
20 lines
395 B
Go
20 lines
395 B
Go
package test
|
|
|
|
func init() {
|
|
var pEFace = func(val interface{}) *interface{} {
|
|
return &val
|
|
}
|
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
|
ptr: (**interface{})(nil),
|
|
input: `"hello"`,
|
|
}, unmarshalCase{
|
|
ptr: (**interface{})(nil),
|
|
input: `1e1`,
|
|
}, unmarshalCase{
|
|
ptr: (**interface{})(nil),
|
|
input: `1.0e1`,
|
|
})
|
|
marshalCases = append(marshalCases,
|
|
pEFace("hello"),
|
|
)
|
|
} |