Help us shape the future of Go! Take the 2026 Go Developer Survey

pagination

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCursor

func EncodeCursor(t time.Time, uuid uuid.UUID) string

EncodeCursor generates a base64 encoded representation of a timestamp + identifier

Types

type Cursor

type Cursor struct {
	Timestamp *time.Time
	ID        *uuid.UUID
}

type Options

type Options struct {
	Cursor *Cursor
	Limit  int
}

func New

func New(c string, l int) (*Options, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL