mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2026-06-20 16:45:26 +08:00
16 lines
150 B
Go
16 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
|
|
}
|