Go Gotcha
Go is lexically scoped…
What is wrong with the following code?
The code shows how Item is being redeclared in the scope of the if.
Further reading here: Declarations and scope
Go is lexically scoped…
What is wrong with the following code?
The code shows how Item is being redeclared in the scope of the if.
Further reading here: Declarations and scope