Because os.Stat
returns two values, you have to have somewhere to receive those if you want any of them. The _
is a placeholder that essentially means "I don't care about this particular return value." Here, we only care to check the error, but don't need to do anything with the actual FileInfo Stat gives us.
The compiler will just throw that value away.