The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Package cursor provides a unified cursor encoding/decoding utility for pagination.
Cursors are versioned and resource-scoped, allowing different parts of the system
to use cursors without collision.
var (
// ErrInvalidCursor indicates the cursor is malformed or cannot be decoded. ErrInvalidCursor = errors.New("invalid cursor")
// ErrVersionMismatch indicates the cursor version doesn't match the expected version. ErrVersionMismatch = errors.New("cursor version mismatch")
)
Decode decodes and validates a cursor string.
Returns the data portion if the cursor matches the expected resource and version.
Returns ErrInvalidCursor if the cursor is malformed.
Returns ErrVersionMismatch if the version doesn't match.