If you declare a local variable and never use it, the standard Go compiler reports an error. This is easy to notice while experimenting: adding a declaration and then forgetting to read it will stop the program from compiling. in source
package main
func main() {
count := 10 // Intentional error.
}The compiler will complain that you have declared a variable but not using it