1. Miki Tebeka
  2. go-play

Commits

Miki Tebeka  committed a3a1fa5

quine

  • Participants
  • Parent commits 7b6102a
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
  • Ignore whitespace
 
 *.6
 *.out
+_testmain.go
 avg64
 cat
 echo
 map
 nc
 pp
+quine
 stack
 t
 uniq
 wc
 zfile
-_testmain.go

File quine.go

View file
  • Ignore whitespace
+/* Go quine */
+package main
+
+import "fmt"
+
+func main() {
+	fmt.Printf("%s%c%s%c\n", q, 0x60, q, 0x60)
+}
+
+var q = `/* Go quine */
+package main
+
+import "fmt"
+
+func main() {
+	fmt.Printf("%s%c%s%c\n", q, 0x60, q, 0x60)
+}
+var q=`