package static
import "golang.org/x/tools/go/callgraph/static"
Package static computes the call graph of a Go program containing only static call edges.
Index ¶
Functions ¶
func CallGraph ¶
CallGraph computes the static call graph of the specified program.
The resulting graph includes: - all package-level functions; - all methods of package-level non-parameterized non-interface types; - pointer wrappers (*C).F for source-level methods C.F; - and all functions reachable from them following only static calls.
It does not consider exportedness, nor treat main packages specially.
Source Files ¶
static.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.