Go version of flatscan