Created
July 29, 2018 11:32
-
-
Save NaniteFactory/fdb4ff670b14b2d8c1ec5c76d0778446 to your computer and use it in GitHub Desktop.
"Hello, world." in 8 different languages for testers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type HelloWorld struct { | |
| Arabic string | |
| English string | |
| Greek string | |
| Hebrew string | |
| Japanese string | |
| Khmer string | |
| Korean string | |
| Smile string | |
| } | |
| func main() { | |
| sample := HelloWorld{ | |
| Arabic: "مرحبا بالعالم.", | |
| English: "Hello, world.", | |
| Greek: "Γειά σου Κόσμε.", | |
| Hebrew: "שלום עולם.", | |
| Japanese: "おはよう、世界。", | |
| Khmer: "សួស្តីពិភពលោក។", | |
| Korean: "안녕, 세상(世上).", | |
| Smile: "☺", | |
| } | |
| fmt.Println(sample) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment