local variable Golang tutorial 4
local variable Golang tutorial 4
Golang variable are very easy to declare and use. If you need a local variable . you need to declare it in “main” function.
func main(){ var a int // local variable }
Source Code
package main import "fmt" func main(){ var a int fmt.Print(a); }