I'm actually new to go and I'm unable to find how to override scope of the variable in Go
consider this...
package main
import (
"fmt"
)
var x = 10
var a int = 10
func main() {
var a int = 20
fmt.Println(a)
}
When I run it the output is 20 which means it actually prints the local scope variable
How can I display the global variable 'a' inside the main function