static

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 149

Documentation

Overview

Package static computes the call graph of a Go program containing only static call edges.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGraph

func CallGraph(prog *ssa.Program) *callgraph.Graph

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL