sevutil

package
v0.0.0-...-dd7e571 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPageSwitcher

func NewPageSwitcher(c sevcord.Ctx, p *PageSwitcher)

Types

type PageSwitchGetter

type PageSwitchGetter struct {
	PageCount int
	Getter    func(page int) string
}

func PSGetterFromItems

func PSGetterFromItems[T any](items []T, pageLength int) PageSwitchGetter

type PageSwitcher

type PageSwitcher struct {
	Title   string
	Content PageSwitchGetter

	// Optional
	Thumbnail *string
	Footer    *string
	Color     int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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