Documentation ¶
Index ¶
- func Read(name string) (*[]byte, error)
- func Remove(name string) error
- func Write(emoji *Emoji) error
- type Emoji
- func (pointer *Emoji) SetAnchor(anchor string) *Emoji
- func (pointer *Emoji) SetCategory(category string) *Emoji
- func (pointer *Emoji) SetCodes(codes *slice.Slice) *Emoji
- func (pointer *Emoji) SetDescription(description string) *Emoji
- func (pointer *Emoji) SetHref(href string) *Emoji
- func (pointer *Emoji) SetImage(image string) *Emoji
- func (pointer *Emoji) SetKeywords(keywords *slice.Slice) *Emoji
- func (pointer *Emoji) SetName(name string) *Emoji
- func (pointer *Emoji) SetNumber(number int) *Emoji
- func (pointer *Emoji) SetPosition(position int) *Emoji
- func (pointer *Emoji) SetSubcategory(subcategory string) *Emoji
- func (pointer *Emoji) SetUnicode(unicode string) *Emoji
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Emoji ¶
type Emoji struct { Anchor string `json:"anchor"` Category string `json:"category"` Codes *slice.Slice `json:"codes"` Description string `json:"description"` Href string `json:"href"` Image string `json:"img"` Keywords *slice.Slice `json:"keywords"` Name string `json:"name"` Number int `json:"number"` Position int `json:"position"` Subcategory string `json:"subcategory"` Unicode string `json:"unicode"` }
Emoji stores the contents about an emoji scraped from the unicode consortium.
func Get ¶
Get attempts to open a Category from the emojipedia/emoji folder, but panics if an error occurs.
func NewEmoji ¶
func NewEmoji(anchor, category, href, image, name, subcategory, unicode string, number, position int, codes, keywords *slice.Slice) *Emoji
NewEmoji creates a new Emoji pointer, requiring all struct features as arguments.
func (*Emoji) SetCategory ¶
SetCategory sets the Emoji.Category property.
func (*Emoji) SetDescription ¶
SetDescription sets the Emoji.Description property.
func (*Emoji) SetKeywords ¶
SetKeywords sets the Emoji.Keywords property.
func (*Emoji) SetPosition ¶
SetPosition sets the Emoji.Position property.
func (*Emoji) SetSubcategory ¶
SetSubcategory sets the Emoji.Subcategory property.
func (*Emoji) SetUnicode ¶
SetUnicode sets the Emoji.Unicode property.
Click to show internal directories.
Click to hide internal directories.