BirdNest Tech Talk
Aug 8, 2024 · Backend Development
How to Hack Go: Access and Modify Private Struct Fields with Reflection and Unsafe
This article demonstrates step‑by‑step how Go's reflection and unsafe packages can be leveraged to bypass the language's encapsulation, allowing reading, writing, and even assigning unaddressable private struct fields by manipulating internal flag bits and using low‑level pointer tricks.
GoReflectionhack
0 likes · 13 min read
