
1. A running goroutine is by definition not parked waiting for a chan recv 2. The FDE end address is intended to be exclusive, the code interpreted as inclusive and sometimes ended up setting a breakpoint on a function other than the current one.
16 lines
206 B
Go
16 lines
206 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
m := make([]string, 1, 25)
|
|
fmt.Println(m) // [ ]
|
|
changeMe(m)
|
|
fmt.Println(m) // [Todd]
|
|
}
|
|
|
|
func changeMe(z []string) {
|
|
z[0] = "Todd"
|
|
fmt.Println(z) // [Todd]
|
|
}
|