
If the location specification matches the name of a function exactly return that function as a match event if the expression matches other functions as well. Without this some functions, like math/rand.Intn are unmatchable.
13 lines
123 B
Go
13 lines
123 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"math/rand"
|
|
"runtime"
|
|
)
|
|
|
|
func main() {
|
|
runtime.Breakpoint()
|
|
fmt.Println(rand.Intn(10))
|
|
}
|