I would rather this return `(int, error)` instead of taking an int pointer.  It's more go like