qlog: implement a minimal jsontext-like JSON encoder (#5353)

* qlog: use fork of encoding/json/jsontext instead of unmaintained gojay

* implement a minimal jsontext-compatible encoder

* qlogtext: improve fuzz test

* qlog: simplify JSON encoding error handling

* qlog: make use of jsontext.Bool
This commit is contained in:
Marten Seemann
2025-10-06 12:48:40 +08:00
committed by GitHub
parent 7c1ce0efe2
commit e6d5d960e3
14 changed files with 1714 additions and 637 deletions

2
go.mod
View File

@@ -3,7 +3,6 @@ module github.com/quic-go/quic-go
go 1.24
require (
github.com/francoispqt/gojay v1.2.13
github.com/prometheus/client_golang v1.19.1
github.com/quic-go/qpack v0.5.1
github.com/stretchr/testify v1.9.0
@@ -19,6 +18,7 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/kr/text v0.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect