There's an explanation in the official Go blog - blog.golang.org/gos-declaration-sy.... Basically they chose that syntax because it's easier to read.
var books string
reads as "declaring a var named books as an array of 5 strings"
That makes sense :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.