So,
.Paginatorand.Paginatereturns a list of “paginator pages”- Each paginator page has some methods, including
HasNextand …Pages.
WIth that, it does not make sense to call .Params on a “paginator page”, because it does not have params…
So:
{{ range .Pages }}
// This is a paginator page, e.g. a group of pages
{{ range .Pages }}
// This is the page
Param: {{ .Param.foo }}
{{ end }}
{{ end }}