reflect2
reflect2 copied to clipboard
reflect api without runtime reflect.Value cost
Many packages do not build, using gollvm, if they depend on reflect2 package. So I am opening an issue, to track down bugs. > $ go version && go env...
In a CI run of our project, we hit the following panic (using the kubernetes client to list some custom resources): ``` panic: runtime error: invalid memory address or nil...
* go fmt project.
code as following failed: var m interface{}=[]int{1,2} slType:=reflect2.TypeOf(m).(reflect2.SliceType) slType.LengthOf(m) //
The NoEscape function in reflect2.go is causing go vet failure, and there is no way to suppress go vet failures. I see that is being used by countlog library. Is...
A number of files in the repo are named like `relfect` (e.g., [`relfect2_386.s`](https://github.com/modern-go/reflect2/blob/2b33151c9bbc5231aea69b8861c540102b087070/relfect2_386.s)), a possible typo of `reflect`. But, enough of them are named this way that I'm not sure...
Just upgraded from go 1.19 to go 1.22 and found the performance is much worse in production (5+ times slower). It affects the json-iterator lib and some of our codes...
Avoid embedding reflect.Type and its Method() method because exposing it disables deadcode removal in linker. https://tip.golang.org/src/cmd/link/internal/ld/deadcode.go#L395