encoding
encoding copied to clipboard
Go package containing implementations of efficient encoding, decoding, and validation APIs.
I'm trying to work with Amazon S3 Bucket Policies, which are polymorphic enough that not even the AWS SDK team has attempted to model the rules for them with Go...
_, err := json.Marshal(map[interface{}]interface{}{1: 1}) error: json: unsupported type: map[interface {}]interface {}
I tried this library as a drop in stdlib replacement and found that with our data, it was slightly worse than stdlib in both memory and speed. So I thought...
I see that StartGroup is not defined: https://github.com/segmentio/encoding/blob/101dc9c5750213ca76cdac2fbc96d667f855555f/proto/message.go#L142-L149 I think this is a problem, as some servers are still using it, for example `android.clients.google.com`.
We've been seeing some occasional restarts in our orchestrator service with added load. Looking at the logs, it seems to be a free object pointer: ``` 0xc01f75bff0 alloc unmarked fatal...
If you use an embedded struct via a pointer and `omitempty` tag on one of struct fields, fields on embedded struct which also tagged with `omitempty` are ignored in the...
# problem in the example below there is an array of Example structs for which the second **contains no values {}**. The **decoder does not complain and constrcuts the missing...
If the writer encounters an error the error is stored in the encoder, but it is not returned. https://github.com/segmentio/encoding/blob/3055897c1c5b74bc4c4ec5f702c22ed90020f410/json/json.go#L537 This is because the above line is creating a new err...
If a number is passed in string form, I catch a conversion error. I remember exactly that there was no such problem a few months ago, but now this problem...