emoji

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 3 Imported by: 0

README

Emoji

A very small Go library for making work with emojis less excrutiating.

License

MIT

Documentation

Overview

Package emoji implements utilities to make working with emoji less excruciatingly painful.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharType

type CharType string

CharType represents a character type within a Node

const (
	CharEmoji    CharType = "emoji"
	CharNonEmoji CharType = "non-emoji"
)

type Node

type Node struct {
	Index int
	Type  CharType
	Chars string
}

Node is a node within a string, either representing an emoji or non-emoji.

func Parse

func Parse(str string) ([]*Node, error)

Parse parses a string, returning a slice of Nodes.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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