Go

Go

Made by DeepSource

Redundant type in variable declaration GO-C5001

Style
Major

Go infers the types of the variables if the type is not written explicitly. It is recommended to remove the type in the declaration for succinctness.

Bad practice

package main

var foo int = 10

Recommended

package main

var foo = 10