package main import ( "fmt" ) // TODO: define divide(a, b float64) (float64, error) func main() { _, err := divide(10, 0) fmt.Println(err) }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion