All Projects β†’ hackebrot β†’ Turtle

hackebrot / Turtle

Licence: mit
Emojis for Go πŸ˜„πŸ’πŸš€

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Turtle

Emojipacks
CLI to bulk upload emojis to your Slack
Stars: ✭ 1,275 (+962.5%)
Mutual labels:  emoji
Gitmoji
Gitmoji is an initiative to standardize and explain the use of emojis on GitHub commit messages.
Stars: ✭ 10,953 (+9027.5%)
Mutual labels:  emoji
Node Semantic Git Commit Cli
A CLI for semantic git commits
Stars: ✭ 114 (-5%)
Mutual labels:  emoji
Emojilib
Emoji keyword library.
Stars: ✭ 1,299 (+982.5%)
Mutual labels:  emoji
Fontconfig Emoji
Emoji prioritization rules
Stars: ✭ 98 (-18.33%)
Mutual labels:  emoji
Mojitalk
Code for "MojiTalk: Generating Emotional Responses at Scale" https://arxiv.org/abs/1711.04090
Stars: ✭ 107 (-10.83%)
Mutual labels:  emoji
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (-29.17%)
Mutual labels:  emoji
React Native Emoticons
react native emoticonsοΌˆθ‘¨ζƒ…οΌ‰, including emoji😁
Stars: ✭ 119 (-0.83%)
Mutual labels:  emoji
Emojify
Obfuscate your python script by converting it to emoji icons
Stars: ✭ 99 (-17.5%)
Mutual labels:  emoji
Gtext
Emoji and Hyperlink for Unity UGUI Text ,ε›Ύζ–‡ζ··ζŽ’γ€θΆ…ι“ΎζŽ₯γ€δΈ‹εˆ’ηΊΏηš„UGUIθ§£ε†³ζ–Ήζ‘ˆ
Stars: ✭ 113 (-5.83%)
Mutual labels:  emoji
Slack Emoji
My slack emoji collection and download script
Stars: ✭ 91 (-24.17%)
Mutual labels:  emoji
Emojica
A Swift framework for using custom emoji in strings.
Stars: ✭ 93 (-22.5%)
Mutual labels:  emoji
Android Keyboard
Android Keyboard with 180+ dictionaries. Support swipe input (sliding input), Emoji keyboard, AI predictions, dictionaries downloading, and keyboard themes.
Stars: ✭ 108 (-10%)
Mutual labels:  emoji
Fnreactionsview
FNReactionsView is a customizable control (based on UIView) to give people a way to show floating emoji like facebook does during live stream, easy way.
Stars: ✭ 87 (-27.5%)
Mutual labels:  emoji
Kitkatemoji
Library for Emoji View like Hangouts, Emoji TextView and Emoji EditText
Stars: ✭ 116 (-3.33%)
Mutual labels:  emoji
Emoji For Jekyll
A plugin for Jekyll that seamlessly enable emoji.
Stars: ✭ 86 (-28.33%)
Mutual labels:  emoji
Openmoji
Open source emojis for designers, developers and everyone else!
Stars: ✭ 1,380 (+1050%)
Mutual labels:  emoji
Emoji Swift
String extension converting to and from emoji character and Emoji-One
Stars: ✭ 119 (-0.83%)
Mutual labels:  emoji
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (-4.17%)
Mutual labels:  emoji
Emoji Vue
Add emoji keyboard to your vuejs project
Stars: ✭ 111 (-7.5%)
Mutual labels:  emoji

turtle

Emojis for Go πŸ˜„πŸ’πŸš€

Reference

Follow this link to view the reference documentation: GoDoc Reference πŸ“

Installation

Library

To install the turtle library run:

go get github.com/hackebrot/turtle

CLI app

If you would also like to use the turtle CLI app run:

go get github.com/hackebrot/turtle/cmd/turtle

See the turtle CLI README for more information.

Usage

Emoji lookup

turtle.Emojis is a map which contains all emojis available in turtle. You can use it to look up emoji by their name.

package main

import (
	"fmt"
	"os"

	"github.com/hackebrot/turtle"
)

func main() {
	name := "turtle"
	emoji, ok := turtle.Emojis[name]

	if !ok {
		fmt.Fprintf(os.Stderr, "no emoji found for name: %v\n", name)
		os.Exit(1)
	}

	fmt.Printf("Name: %q\n", emoji.Name)
	fmt.Printf("Char: %s\n", emoji.Char)
	fmt.Printf("Category: %q\n", emoji.Category)
	fmt.Printf("Keywords: %q\n", emoji.Keywords)
}
Name: "turtle"
Char: 🐒
Category: "animals_and_nature"
Keywords: ["animal" "slow" "nature" "tortoise"]

Search

Use Search() to find all emojis with a name that contains the search string.

package main

import (
	"fmt"
	"os"

	"github.com/hackebrot/turtle"
)

func main() {
	s := "computer"
	emojis := turtle.Search(s)

	if emojis == nil {
		fmt.Fprintf(os.Stderr, "no emojis found for search: %v\n", s)
		os.Exit(1)
	}

	fmt.Printf("%s: %s\n", s, emojis)
}
computer: [πŸ’» πŸ–± πŸ–₯ ]

Category

Use Category() to find all emojis of the specified category.

package main

import (
	"fmt"
	"os"

	"github.com/hackebrot/turtle"
)

func main() {
	c := "travel_and_places"
	emojis := turtle.Category(c)

	if emojis == nil {
		fmt.Fprintf(os.Stderr, "no emojis found for category: %v\n", c)
		os.Exit(1)
	}

	fmt.Printf("%s: %s\n", c, emojis)
}
travel_and_places: [🚑 ✈️ πŸš‘ ]

Keyword

Use Keyword() to find all emojis by a keyword.

package main

import (
	"fmt"
	"os"

	"github.com/hackebrot/turtle"
)

func main() {
	k := "happy"
	emojis := turtle.Keyword(k)

	if emojis == nil {
		fmt.Fprintf(os.Stderr, "no emoji found for keyword: %v\n", k)
		os.Exit(1)
	}

	fmt.Printf("%s: %s\n", k, emojis)
}
happy: [😊 😁 πŸ˜€ πŸ˜‚ ]

Emojis

Emoji names, categories and keywords are based on the fantastic muan/emojilib keyword library πŸ“–

At this point, the turtle project supports the emojis that are also available on GitHub. See the GitHub REST API documentation for more information.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Contributing

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

License

Distributed under the terms of the MIT license, turtle is free and open source software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].