Skip to content

Instantly share code, notes, and snippets.

@krisnova
Created December 15, 2016 06:51
Show Gist options
  • Save krisnova/96b25537b2207ddfc42ca9d945418116 to your computer and use it in GitHub Desktop.
Save krisnova/96b25537b2207ddfc42ca9d945418116 to your computer and use it in GitHub Desktop.
Scope with {}
package main
import "fmt"
func main() {
n := "Hello Good!"
{
n := "Hello Bad!"
//fmt.Println(n)
}
fmt.Println(n)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment