You've already forked go-profiler-notes
mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2025-07-15 23:54:16 +02:00
24 lines
207 B
Go
24 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")
|
|
}
|