Sign in
go
/
tour
/
9de5f50de161780fcd9c70d898cde9e2bacef1a5
/
.
/
content
/
moretypes
/
function-values.go
blob: 76429574198e138884b43d4a9cd267895e70d238 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import (
"fmt"
"math"
)
func main() {
hypot := func(x, y float64) float64 {
return math.Sqrt(x*x + y*y)
}
fmt.Println(hypot(3, 4))
}