Welcome to Mojo GoJo, where Go meets Emojis to make your coding experience delightful and colorful! (You will hate it)
# Download the binary
wget https://github.com/EdmondTabaku/mojo-gojo/releases/download/v1.0.0/mojo-gojo-linux -O mojo-gojo
# Make the binary executable
chmod +x mojo-gojo
# Move the binary to a directory in your PATH
sudo mv mojo-gojo /usr/local/bin/
# Download the binary
curl -Lo mojo-gojo https://github.com/EdmondTabaku/mojo-gojo/releases/download/v1.0.0/mojo-gojo-mac
# Make the binary executable
chmod +x mojo-gojo
# Move the binary to a directory in your PATH
sudo mv mojo-gojo /usr/local/bin/
Download the .exe file from mojo-gojo.exe.
Move the .exe file to a directory of your choice.
Add the directory to your system's PATH.
Open Command Prompt and verify the installation with mojo-gojo
All Operating Systems:
# Clone the repository
git clone https://github.com/EdmondTabaku/mojo-gojo.git
cd mojo-gojo
# Build the project
go build -o mojo-gojo ./cmd/mojo-gojo
# Move the binary to a directory in your PATH (you might need sudo for Linux/macOS)
mv mojo-gojo /path/to/directory/in/your/PATH/
With Mojo GoJo, you write Go code using our emoji-keyword mappings. The mojo-gojo files have the .mg
suffix. Once your code is ready, use the mojo-gojo command-line tool to convert your emoji-filled code into standard Go, which you can then run or build.
Here's a quick reference of our emoji-to-keyword mappings:
Emoji | Go Keyword |
---|---|
π¦ | package |
π§ | func |
π | for |
π₯ | import |
β | break |
π² | default |
π | interface |
π― | select |
𧳠| case |
π΄ | defer |
π | go |
πΊοΈ | map |
ποΈ | struct |
π« | chan |
π€·,π€·π»ββοΈ,π€·πΌββοΈ,π€·π½ββοΈ,π€·πΎββοΈ,π€·πΏββοΈ | else |
πΆββοΈ | goto |
π | switch |
π | const |
π€Έ | fallthrough |
π€ | if |
π€ | if err != nil |
π | range |
π | type |
βοΈ | continue |
π€ | return |
π± | panic |
π€² | var |
Here's a fun example of how you can write a simple program using Mojo GoJo:
π¦ main
π₯ (
"fmt"
)
π§ main() {
fmt.Println("Mojooo Gojooo World!")
}
After writing your .mg file, simply use the mojo-gojo tool to run it:
mojo-gojo run your/project/directory
Love Mojo GoJo? (No)
Want to make it even better? (No)
If yes then do your thing, and create a pr. (Deleting the project)