This issue made because go-gl/gl#18 is the wrong repository for it.
This is the exact same issue that had to be resolved back in the old bindings go-gl/glfw#78, the most straightforward fix would be to work with uintptr instead of unsafe.Pointer. Using a new type instead of uintptr is also viable, but in no circumstance should it stay in an unsafe.Pointer