MCPcopy Create free account
hub / github.com/ardanlabs/gotraining / example

Function example

topics/go/profiling/stack_trace/example2/example2.go:12–14  ·  view source on GitHub ↗

go:noinline

(b1, b2, b3 bool, i uint8)

Source from the content-addressed store, hash-verified

10
11//go:noinline
12func example(b1, b2, b3 bool, i uint8) error {
13 panic("Want stack trace")
14}
15
16/*
17 panic: Want stack trace

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected