EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Extracts data from the function return value, as specified by the provided expression. Traceable types are the same as in ArgExpr
. Return values are accessed by index ($0
for the first return value, $1
for the second return value, etc.). In Golang, the first index value is the number of arguments, excluding the receiver. For example, the return value for fun Sum(a int, b int) int
is $2
. Return values that are structs may be accessed using dotted notation, similar to ArgExpr
, (e.g. $0.foo
).
Name | Type | Description |
---|---|---|
expr | str | The expression to evaluate. |