package main import "fmt" func half(i int) (int, bool) { return i / 2, i%2 == 0 } func main() { fmt.Println(half(1)) fmt.Println(half(2)) }