Created
December 10, 2011 12:52
-
-
Save tux21b/1455097 to your computer and use it in GitHub Desktop.
Go-Port of an old Plan9 snippet featuring smileys
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" | |
"os" | |
"unsafe" | |
) | |
type ʘᴗʘ int32 | |
type Θ_Θ struct{} | |
var ( | |
ºωº = ʘᴗʘ(unsafe.Sizeof(ʘᴗʘ(0))) | |
Ծᴗσ = ʘᴗʘ(unsafe.Sizeof(Θ_Θ{})) | |
) | |
func main() { | |
for òдó := ʘᴗʘ(Ծᴗσ); òдó < ºωº; òдó++ { | |
fmt.Printf("òдó = %d\n", òдó) | |
} | |
os.Exit(int(Ծᴗσ)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment