1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-15 23:54:16 +02:00
Files
go-profiler-notes/guide/heap.go

17 lines
150 B
Go
Raw Permalink Normal View History

2021-09-08 11:25:15 +02:00
// +build ignore
package main
import (
"fmt"
)
func main() {
2021-09-09 23:46:41 +02:00
fmt.Println(*add(23, 42))
2021-09-08 11:25:15 +02:00
}
2021-09-09 23:46:41 +02:00
func add(a, b int) *int {
sum := a + b
return &sum
2021-09-08 11:25:15 +02:00
}