package main import "fmt" func add(a, b int) int { return 0 } func main() { result := add(2, 3) if result == 5 { fmt.Println("PASS: add(2, 3) = 5") } else { fmt.Printf("FAIL: got %d ", result) } }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion