/* * Unlike Java, Go allows the definition of a var that "shadows" * or hides the var in another block. * @author ggtowell * created July 20, 2021 */ package main import "fmt" func main() { s := "string" { s := s+"5"; // this defines a var s tht gets the value that results from the concatenation of s with "5" fmt.Println(s); } fmt.Println(s); }