Source File
decode_slice.go
Belonging Package
github.com/francoispqt/gojay
package gojay// AddSliceString unmarshals the next JSON array of strings to the given *[]string sfunc ( *Decoder) ( *[]string) error {return .SliceString()}// SliceString unmarshals the next JSON array of strings to the given *[]string sfunc ( *Decoder) ( *[]string) error {:= .Array(DecodeArrayFunc(func( *Decoder) error {var stringif := .String(&); != nil {return}* = append(*, )return nil}))if != nil {return}return nil}// AddSliceInt unmarshals the next JSON array of integers to the given *[]int sfunc ( *Decoder) ( *[]int) error {return .SliceInt()}// SliceInt unmarshals the next JSON array of integers to the given *[]int sfunc ( *Decoder) ( *[]int) error {:= .Array(DecodeArrayFunc(func( *Decoder) error {var intif := .Int(&); != nil {return}* = append(*, )return nil}))if != nil {return}return nil}// AddFloat64 unmarshals the next JSON array of floats to the given *[]float64 sfunc ( *Decoder) ( *[]float64) error {return .SliceFloat64()}// SliceFloat64 unmarshals the next JSON array of floats to the given *[]float64 sfunc ( *Decoder) ( *[]float64) error {:= .Array(DecodeArrayFunc(func( *Decoder) error {var float64if := .Float64(&); != nil {return}* = append(*, )return nil}))if != nil {return}return nil}// AddBool unmarshals the next JSON array of boolegers to the given *[]bool sfunc ( *Decoder) ( *[]bool) error {return .SliceBool()}// SliceBool unmarshals the next JSON array of boolegers to the given *[]bool sfunc ( *Decoder) ( *[]bool) error {:= .Array(DecodeArrayFunc(func( *Decoder) error {var boolif := .Bool(&); != nil {return}* = append(*, )return nil}))if != nil {return}return nil}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |