Even or Odd in Go

package main

import (  
    "fmt"
)

func main() {  
    num := 15
    if num % 2 == 0 { 
        fmt.Println("even") 
    }  else {
        fmt.Println("odd")
    }
}


output: odd

This program basically check the given number is even or odd