emoji

package module
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 6 Imported by: 324 modules, 388 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.

README

Emoji

Emoji is a simple golang package.

wercker status Coverage Status GoDoc

Get it:

go get github.com/kyokomi/emoji

Import it:

import (
	"github.com/kyokomi/emoji"
)

Usage

package main

import (
	"fmt"

	"github.com/kyokomi/emoji"
)

func main() {
	fmt.Println("Hello World Emoji!")

	emoji.Println(":beer: Beer!!!")

	pizzaMessage := emoji.Sprint("I like a :pizza: and :sushi:!!")
	fmt.Println(pizzaMessage)
}

Demo

demo

Reference

License

MIT

Documentation

Overview

Package emoji terminal output.

Index

Constants

This section is empty.

Variables

View Source
var (
	ReplacePadding = " "
)

Replace Padding character for emoji.

Functions

func AliasList

func AliasList(shortCode string) []string

func CodeMap

func CodeMap() map[string]string

CodeMap gets the underlying map of emoji.

func Errorf

func Errorf(format string, a ...interface{}) error

Errorf is fmt.Errorf which supports emoji

func Fprint

func Fprint(w io.Writer, a ...interface{}) (int, error)

Fprint is fmt.Fprint which supports emoji

func Fprintf

func Fprintf(w io.Writer, format string, a ...interface{}) (int, error)

Fprintf is fmt.Fprintf which supports emoji

func Fprintln

func Fprintln(w io.Writer, a ...interface{}) (int, error)

Fprintln is fmt.Fprintln which supports emoji

func HasAlias

func HasAlias(shortCode string) bool

HasAlias flags if the given `shortCode` has multiple aliases with other codes.

func NormalizeShortCode

func NormalizeShortCode(shortCode string) string

NormalizeShortCode normalizes a given `shortCode` to a deterministic alias.

func Print

func Print(a ...interface{}) (int, error)

Print is fmt.Print which supports emoji

func Printf

func Printf(format string, a ...interface{}) (int, error)

Printf is fmt.Printf which supports emoji

func Println

func Println(a ...interface{}) (int, error)

Println is fmt.Println which supports emoji

func RevCodeMap

func RevCodeMap() map[string][]string

RevCodeMap gets the underlying map of emoji.

func Sprint

func Sprint(a ...interface{}) string

Sprint is fmt.Sprint which supports emoji

func Sprintf

func Sprintf(format string, a ...interface{}) string

Sprintf is fmt.Sprintf which supports emoji

Types

This section is empty.

Directories

Path Synopsis
cmd module

Jump to

Keyboard shortcuts

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