Closed zypeh closed 5 years ago
Basically it is just unsafe pointer casting the reflect.SliceHeader
to reflect.StringHeader
, since it is same length in runtime. But Go does not specify the length of reflect struct field, and may be subject to change.
Thank for the suggestion, changes had been updated to feature/validate
I do suggest using
github.com/valyala/fasthttp
for better support and updates. As I see there is no strong reason to use the fasthttprouter also.Instead will introduce unsound problem/compatibility problem for later go versions. *1