Sign in
go
/
website
/
refs/heads/master
/
.
/
_content
/
tour
/
flowcontrol
/
if.go
blob: 4da2e6400b5d3728e50c7488e7d95115366cd6c9 [
file
] [
log
] [
blame
]
//go:build OMIT
package main
import (
"fmt"
"math"
)
func sqrt(x float64) string {
if x < 0 {
return sqrt(-x) + "i"
}
return fmt.Sprint(math.Sqrt(x))
}
func main() {
fmt.Println(sqrt(2), sqrt(-4))
}