Use strings.HasPrefix(name, ".") instead of strings.Index(name, ".") == 0

See strings.HasPrefix() source code at
http://golang.org/src/pkg/strings/strings.go#L370