meta data for this page
This is an old revision of the document!
stack traces
08 func Example(slice []string, str string, i int) { 09 panic("Want stack trace") 10 } main.Example(0x2080c3f50, 0x2, 0x4, 0x425c0, 0x5, 0xa) /Users/bill/Spaces/Go/Projects/src/github.com/goinaction/code/ temp/main.go:9 +0x64
// Declaration main.Example(slice []string, str string, i int) // Call to Example by main. slice := make([]string, 2, 4) Example(slice, "hello", 10) // Stack trace +--- SLICE -------+ +-- string -+ int ptr len cap | ptr len| main.Example(0x2080c3f50, 0x2, 0x4, 0x425c0, 0x5, 0xa)