Of more concern is the type: int isn't guaranteed to be any particular size, and in particular not guaranteed to be the same size as a pointer. If it's size_t in C, it should be uintptr in Go.