mirror of
https://github.com/json-iterator/go.git
synced 2024-11-27 08:30:57 +02:00
15 lines
252 B
Go
15 lines
252 B
Go
package test
|
|
|
|
func init() {
|
|
nilSlice := []string(nil)
|
|
marshalCases = append(marshalCases,
|
|
[]interface{}{"hello"},
|
|
nilSlice,
|
|
&nilSlice,
|
|
)
|
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
|
ptr: (*[]string)(nil),
|
|
input: "null",
|
|
})
|
|
}
|