====== 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) ===== argument types ===== | type | values | val 1 | val 2 | val 3 | | interface | 2 | type pointer | data pointer | - | | v ...interface{} | 3 | | | | string | 2 | data pointer | length | | int | 1 | value | | | | pointer | 1 | pointer | | | | slice | 3 | array pointer | length | capacity |