1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-12 23:50:13 +02:00
Files
go-profiler-notes/guide/heap.go
Felix Geisendörfer 6b9adbfc74 Add CPU profiler section
2021-09-09 23:46:41 +02:00

17 lines
150 B
Go

// +build ignore
package main
import (
"fmt"
)
func main() {
fmt.Println(*add(23, 42))
}
func add(a, b int) *int {
sum := a + b
return &sum
}