You shouldn’t name your variables after their types for the same reason you wouldn’t name your pets “dog” or “cat”

1 · Dave Cheney · Jan. 29, 2019, 9:08 a.m.
The name of a variable should describe its contents, not the type of the contents. Consider this example: var usersMap map[string]*User What are some good properties of this declaration? We can see that it’s a map, and it has something to do with the *User type, so that’s probably good. But usersMapis a map and Go, being a statically typed language, […]...