1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-12 23:50:13 +02:00
Files

25 lines
245 B
Go
Raw Permalink Normal View History

2021-05-24 11:50:26 +02:00
package main
import (
"fmt"
"os"
)
func main() {
if err := run(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
func run() error {
for i := 0; i < 10; i++ {
foo(i)
}
return nil
}
func foo(i int) int {
return i * 2
}