I’m trying to output a list of dates in reverse order to populate an input box. My Go knowledge isn’t that great so I’m quite sure how to get this to work:
<select class="select" name="birthday_year">
{{ range sort $s := (seq 1905 (now.Format "2006")) }}
<option>$s</option>
{{ end }}
</select>
Ideally I’d like to get the last 100 years from the current year but I can’t get the sequence to even ouput in its current form.