Damien Neil
Damien Neil
The `net/http` package includes transparent support for HTTP/2. The source of truth for this implementation is the `golang.org/x/net/http2` package, which is vendored into `std` (using a rather complicated process to...
```go dec := json.NewDecoder(strings.NewReader(",")) fmt.Println(dec.More()) fmt.Println(dec.Token()) ``` ``` $ go run . true invalid character ',' looking for beginning of value ``` ``` $ GOEXPERIMENT=jsonv2 go run . false invalid...
This is branched off of #76467, and is related to #75431. `encoding/json/jsontext.Decoder.PeekKind` returns `KindInvalid` (0) if the next read will return an error. I propose that `PeekKind` distinguish between EOF...