/*
Here output always be "Hello" as we are passing cop of variable
insted of ref.
*/
Here output always be "Hello" as we are passing cop of variable
insted of ref.
/ * Here output always be " Hello " as we are passing cop of variable insted of ref . * /
func routineClosure2() {
	msg := "Hello"
	go func(msg string) {
		fmt.Println(msg)
	}(msg)
	msg = "Buy"
	time.Sleep(1000)
}
func routineClosure2 ( ) { msg := " " go func ( msg string ) { fmt . Println ( msg ) } ( msg ) msg = " " time . Sleep ( 1000 ) }
Here output always be "Hello" as we are passing cop of variable
insted of ref.
Here output always be " Hello " as we are passing cop of variable insted of ref .