
- Unlike FunctionEntryToFirstLine can skip the prologue on functions that are defined on a single line, either because they weren't formatted or because they were autogenerated - Can skip the prologue on most functions when setting a breakpoint with the filename:line syntax Fixes #396
28 lines
292 B
Go
28 lines
292 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func callme(i int) {
|
|
fmt.Println("got:", i)
|
|
}
|
|
|
|
const nBytes = 10
|
|
var zeroarr [nBytes]byte
|
|
|
|
func callme2() {
|
|
for i := 0; i < nBytes; i++ {
|
|
zeroarr[i] = '0'
|
|
}
|
|
}
|
|
|
|
func callme3() {
|
|
callme2()
|
|
}
|
|
|
|
func main() {
|
|
for i := 0; i < 5; i++ {
|
|
callme(i)
|
|
}
|
|
callme3()
|
|
}
|