Skip to content

kkh913/goemojify

Repository files navigation

goemojify

CircleCI

Convert the aliases to emoji raw characters. (e.g. :+1: → 👍)

Installation

$ make && make install 

The binary goemojify will be located in $GOPATH/bin.

Dependencies

Usage

Same as the original use except for the following:

  1. I renamed the executable to goemojify.
  2. Interactive is not supported. (Should I do it? 🤔)

Additional feature

  1. -f string: convert aliases to emoji in text file
$ goemojify -f emojify_tests.bats

Example

  1. Convert the string inside ""

  2. Use linux pipe

Credits

It's a golang port of the original emojify, all the glories should belong to mrowa44.

Thanks to

@haukened: His project is also aimed at converting aliases to emojis in Go, which can be imported into the Go module. I was able to get some hints on regular expressions (regexp) from his project. I am not going to distribute this project as a Go module.

@Nicola Apicella: Through his article I was able to learn how to use Linux pipe and cobra in Golang.

TODOs

  • Release (cross-compiled)
  • Containerization
  • Optimazation

License

MIT