2012-04-25 14:07:23 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
var myst = "Shall we?"
|
|
|
|
|
|
|
|
func main () {
|
2015-04-16 11:03:47 +00:00
|
|
|
fmt.Println ("Before assignment")
|
2012-04-25 14:07:23 +00:00
|
|
|
st := "Hello, world!" // this intentionally shadows the global "st"
|
2015-04-16 11:03:47 +00:00
|
|
|
fmt.Println (st) // set breakpoint 1 here
|
|
|
|
fmt.Println (myst)
|
2012-04-25 14:07:23 +00:00
|
|
|
}
|