Gistlib Logo

gistlib

other go categories

concise-code code snippets in go

turn int a terse one-liner: `package leap func isleapyear(year int) bool { return year%4 == 0 && (year%100 != 0 || year%400 == 0) }` in go

gistlibby LogSnag