package definition

Import Path
	github.com/yuin/goldmark-emoji/definition (on go.dev)

Dependency Relation
	imports one package, and imported by 2 packages

Involved Source Files definition.go github.go
Package-Level Type Names (total 4, in which 3 are exported)
/* sort exporteds by: | */
Emoji is a data structure that holds a single emoji. Name is a name of this emoji. ShortNames is a shorter representation of this emoji. Unicode is an unicode representation of this emoji. IsUnicode returns true if this emoji is defined in unicode, otherwise false. func NewEmoji(name string, unicode []rune, shortNames ...string) Emoji func Emojis.Get(shortName string) (*Emoji, bool) func NewEmojis(es ...Emoji) Emojis func WithEmojis(emojis ...Emoji) EmojisOption func github.com/yuin/goldmark-emoji/ast.NewEmoji(shortName []byte, value *Emoji) *ast.Emoji
Emojis is a collection of emojis. Add adds new emojis to this collection. Clone clones this collection. Get returns (*Emoji, true) if found mapping associated with given short name, otherwise (nil, false). func Github(opts ...EmojisOption) Emojis func NewEmojis(es ...Emoji) Emojis func Emojis.Clone() Emojis func Emojis.Add(Emojis) func github.com/yuin/goldmark-emoji.WithEmojis(value Emojis) emoji.Option
EmojisOption sets options for Emojis. func WithEmojis(emojis ...Emoji) EmojisOption func Github(opts ...EmojisOption) Emojis
Package-Level Functions (total 4, all are exported)
NewEmoji returns a new Emoji.
NewEmojis returns a new Emojis.
WithEmojis is an EmojisOption that adds emojis to the Emojis.
Package-Level Variables (total 2, neither is exported)