emoji

package module
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2017 License: MIT Imports: 6 Imported by: 70

README

Emoji

Emoji is a simple golang package.

wercker status Coverage Status GoDoc

Get it:

go get gopkg.in/kyokomi/emoji.v1

Import it:

import (
	"gopkg.in/kyokomi/emoji.v1"
)

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

View Source
const (
	ReplacePadding = " "
)

Replace Padding character for emoji.

Variables

This section is empty.

Functions

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 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 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

Jump to

Keyboard shortcuts

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