Last active
August 1, 2019 15:24
-
-
Save sahajre/138decc907a4b5b7369c3f9d109d5ee1 to your computer and use it in GitHub Desktop.
This file contains 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" | |
func main() { | |
var s = [9]rune{ | |
'H', 'e', 'l', 'l', 'o', ',', ' ', '世', '界', | |
} | |
for i := 0; i < len(s); i++ { | |
fmt.Printf("%c", s[i]) | |
} | |
fmt.Println() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment