package view import ( "strconv" ) templ Reports(months []string, m int, year string) { @BaseLayout() { Reports Generate monthly and yearly statements Period Monthly Yearly Year Month for i, month := range months { if i+1 == m { { month } } else { { month } } } Submit } }