simple pagination implemention for Go (roughly based on Django's Paginator)