Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/EdmondTabaku/mojo-gojo
https://github.com/EdmondTabaku/mojo-gojo
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/EdmondTabaku/mojo-gojo
- Owner: EdmondTabaku
- Created: 2023-09-30T23:50:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-02T07:05:08.000Z (11 months ago)
- Last Synced: 2024-08-02T14:06:21.022Z (3 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 64
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Mojo GoJo: Write Go with Emojis!
Welcome to Mojo GoJo, where Go meets Emojis to make your coding experience delightful and colorful! (You will hate it)
## π¦ Installation
### 1. Pre-built Binaries:
#### Linux:
```bash
# 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/
```#### macOS:
```bash
# 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/
```#### Windows:
Download the .exe file from [mojo-gojo.exe](https://github.com/EdmondTabaku/mojo-gojo/releases/download/v1.0.0/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```
### 2. Build from Source:
All Operating Systems:
```bash
# 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/
```## π How to Use Mojo GoJo
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.
### πΊοΈ Emoji-to-Keyword Mappings
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 |### ποΈ Sample Code
Here's a fun example of how you can write a simple program using Mojo GoJo:
```go
π¦ mainπ₯ (
"fmt"
)π§ main() {
fmt.Println("Mojooo Gojooo World!")
}
```### π Running Your Code
After writing your .mg file, simply use the mojo-gojo tool to run it:```bash
mojo-gojo run your/project/directory
```## π€ Contributing
Love Mojo GoJo? (No)
Want to make it even better? (No)
If yes then do your thing, and create a pr. (Deleting the project)