projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
golang.org
/
x
/
tools@v0.0.0-20201028153306-37f0764111ff
/
go
/
callgraph
/
cha
/
testdata
/
func.go
1
// +build ignore
2
3
package main
4
5
// Test of dynamic function calls; no interfaces.
6
7
func A(int) {}
8
9
var (
10
B = func(int) {}
11
C = func(int) {}
12
)
13
14
func f() {
15
pfn := B
16
pfn(0) // calls A, B, C, even though A is not even address-taken
17
}
18
19
// WANT:
20
// Dynamic calls
21
// f --> A
22
// f --> init$1
23
// f --> init$2