Skip to content

Instantly share code, notes, and snippets.

@tux21b
Created December 10, 2011 12:52
Show Gist options
  • Save tux21b/1455097 to your computer and use it in GitHub Desktop.
Save tux21b/1455097 to your computer and use it in GitHub Desktop.
Go-Port of an old Plan9 snippet featuring smileys
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