Introduction
Type inference lets Go figure out the type of a variable automatically so you don't have to write it. This makes your code shorter and easier to read.
When you want to declare a variable without writing its type explicitly.
When the value assigned clearly shows what type the variable should be.
When you want to keep your code clean and simple.
When you are working with short variable declarations inside functions.
When you want to avoid repeating the type name.