icons

package
v0.0.0-...-15283aa Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Icon

type Icon struct {
	lucide.IconInfo
	SearchTerms []string
	SVG         string
}

func GetAllIcons

func GetAllIcons() []Icon

func PaginateIcons

func PaginateIcons(page, size int, query string) ([]Icon, bool, int)

PaginateIcons returns a slice of icons for a given page, size and query. The query is used to filter the icons.

The second return value is a boolean indicating if there are more icons to be paginated.

The third return value is the next page of icons.

func SearchIcons

func SearchIcons(query string) []Icon

Jump to

Keyboard shortcuts

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