You've already forked go-profiler-notes
mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2025-07-12 23:50:13 +02:00
17 lines
150 B
Go
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
|
|
}
|