Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPage ¶
ExtractPage get page from callback or session storage, if not exist, then return 1 and save to session storage. It extract page from callback and session storage and save it to session storage. You can use this function to get page from callback and session storage.
func ExtractPageFromCallback ¶
ExtractPageFromCallback retrieves the page number from the callback data. It parses the callback data as a uint64 and returns the page number along with a boolean indicating success. If the data is empty or cannot be parsed as a valid page number, it returns 0 and false.
func ExtractPageFromSession ¶
ExtractPageFromSession get page from session storage. It get page from session storage and return false if not exist. Page is saved in session storage with key, for example: "page".
func NewPagination ¶
Types ¶
This section is empty.