Go call graph generator
Paste Go source and see which functions and methods call which. A quick way to size up a package you are about to change.
Open the editorExample
example.go
package billing
func Run() int {
total := SumInvoices(fetchInvoices())
report(total)
return total
}
func fetchInvoices() []int {
return []int{1000, 2500, 400}
}
func SumInvoices(amounts []int) int {
total := 0
for _, amount := range amounts {
total += amount
}
return total
}
func report(total int) {
println(total)
}
What the graph shows
Go has no classes, so the graph is flatter than the Python or Java equivalent: functions and methods are nodes, calls are arrows. Receivers are kept with their methods, so it stays clear which type a method hangs off. Standard library calls are filtered out.
Now try it with your own code
Paste a file, pick the language, hit Analyze. Nothing is stored.
Open the editor