emoji

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

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.

Documentation

Overview

Package emoji is lys-ui's emoji chooser data (#92): a curated table of common Unicode emoji grouped by category with search keywords, parsed once from a compact literal. This is a starter table - a few hundred well-chosen emoji, not the full CLDR set - kept in one place so a bigger table is a data change, not a code change.

Index

Constants

This section is empty.

Variables

View Source
var Categories = parse(table)

Categories is the parsed table, in order.

Functions

This section is empty.

Types

type Category

type Category struct {
	Name  string
	Items []Emoji
}

Category groups emoji under the chooser's section headers, in table order.

type Emoji

type Emoji struct {
	Glyph    string
	Name     string
	Keywords []string
}

Emoji is one table entry: the emoji itself, its name, and search keywords (name included).

func All

func All() []Emoji

All flattens the table.

func Matches

func Matches(query string, n int) []Emoji

Matches returns emoji whose name or keywords contain every word of the query (case-insensitive), capped at n, in table order.

Jump to

Keyboard shortcuts

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