Source File
unknown_fields.go
Belonging Package
github.com/mailru/easyjson
package easyjsonimport (jlexer)// UnknownFieldsProxy implemets UnknownsUnmarshaler and UnknownsMarshaler// use it as embedded field in your structure to parse and then serialize unknown struct fieldstype UnknownFieldsProxy struct {unknownFields map[string][]byte}func ( *UnknownFieldsProxy) ( *jlexer.Lexer, string) {if .unknownFields == nil {.unknownFields = make(map[string][]byte, 1)}.unknownFields[] = .Raw()}func ( UnknownFieldsProxy) ( *jwriter.Writer, bool) {for , := range .unknownFields {if {= false} else {.RawByte(',')}.String(string()).RawByte(':').Raw(, 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. |