Go scan

this makes the code a little less c and a little bit more go, nothing big :)