mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2026-06-21 00:46:51 +08:00
23 lines
207 B
Go
23 lines
207 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
foo()
|
|
foobar()
|
|
}
|
|
|
|
func foo() {
|
|
bar()
|
|
}
|
|
|
|
func bar() {
|
|
fmt.Printf("Hello from bar\n")
|
|
panic("oh no")
|
|
}
|
|
|
|
func foobar() {
|
|
fmt.Printf("Hello from foobar\n")
|
|
}
|