Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emoji ¶
type Emoji struct { // Name is a name of this emoji. Name string // ShortNames is a shorter representation of this emoji. ShortNames []string // Unicode is an unicode representation of this emoji. Unicode []rune }
Emoji is a data structure that holds a single emoji.
type Emojis ¶
type Emojis interface { // Get returns (*Emoji, true) if found mapping associated with given short name, otherwise (nil, false). Get(shortName string) (*Emoji, bool) // Add adds new emojis to this collection. Add(Emojis) // Clone clones this collection. Clone() Emojis }
Emojis is a collection of emojis.
func Github ¶
func Github(opts ...EmojisOption) Emojis
type EmojisOption ¶
type EmojisOption func(Emojis)
EmojisOption sets options for Emojis.
func WithEmojis ¶
func WithEmojis(emojis ...Emoji) EmojisOption
WithEmojis is an EmojisOption that adds emojis to the Emojis.
Click to show internal directories.
Click to hide internal directories.