Release v1.2.1
What's Changed
Optional ifacefuncval
Replace icall stubs with tagged MakeFunc ifn. Requires a patched Go 1.25.x / 1.26.x / 1.27.x and -tags goplus.ifacefuncval. Supported GOARCH: wasm, arm64, amd64, 386.
go install github.com/goplus/reflectx/cmd/iface_patch@latest
iface_patch /path/to/go
cd /path/to/go/src && ./make.bash
Without the tag, a patched compiler matches official gc. An unpatched compiler still accepts the tag; interface method calls then trap.
reflectx v1.8.2
Cloning and SetUnderlying keep PkgPath for unexported fields and methods. gc SetUnderlying for interfaces re-encodes the method table. Interp regression test: unnamed struct with a promoted method and an unexported field.
Full Changelog: v1.1.8...v1.2.1