package leap const testVersion = 2 // IsLeapYear receives an integer year value and returns a boolean indicating // whether the year is a leap year or not. func IsLeapYear(year int) bool { switch { case year%400 == 0: return true case year%100 == 0: return false case year%4 == 0: return true default: return false } }