Reformat file to make it more idiomatic

Convention fixes:

- tabs instead of spaces
- `main` function at the top

Used the `go fmt` command, very good to have something like this in the toolchain.