# How to dump the GOSSAFUNC graph for a method

DevFeed: [How to dump the GOSSAFUNC graph for a method](<https://devfeed.tech/articles/how-to-dump-the-gossafunc-graph-for-a-method-20834.md>)

Original publisher: [Read original article](<https://dave.cheney.net/2020/06/19/how-to-dump-the-gossafunc-graph-for-a-method>)

Author: Dave Cheney

Published: 2020-06-19T03:36:57Z

Content type: tutorial

Language: en

Sources: [Dave Cheney](<https://devfeed.tech/sources/dave-cheney.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [HTML](<https://devfeed.tech/topics/html.md>)

Tags: [compiler](<https://devfeed.tech/tags/compiler.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [function](<https://devfeed.tech/tags/function.md>), [go](<https://devfeed.tech/tags/go.md>), [gossafunc](<https://devfeed.tech/tags/gossafunc.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [html](<https://devfeed.tech/tags/html.md>), [program](<https://devfeed.tech/tags/program.md>), [programming](<https://devfeed.tech/tags/programming.md>), [ssa](<https://devfeed.tech/tags/ssa.md>)

## AI overview

This tutorial explains how to use the Go compiler's SSA debugging facility to produce HTML output for compilation phases and dump SSA information for functions, value methods, and pointer methods. It describes selecting the target through the GOSSAFUNC environment variable and determining the equivalent function names for methods.

## Source excerpt

The Go compiler's SSA backend contains a facility to produce HTML debugging output of the compilation phases. This post covers how to print the SSA output for function and methods. Let's start with a sample program which contains a function, a value method, and a pointer method: Control of the SSA debugging output is via [...]