json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.33k stars 1.02k forks source link

Remove the dependency on github.com/modern-go/reflect2 #691

Open dominiquelefevre opened 8 months ago

dominiquelefevre commented 8 months ago

reflect2 is too brittle because of the reliance on the internals of the golang's compiler. Moreover, it is no longer maintained: github.com/modern-go/reflect2..

Replace the usages of github.com/modern-go/reflect2 with stdlib's reflect.

fioncat commented 5 months ago

Agreed, after i updated go to 1.20, reflect2 panic directly, this is awful.