Skip to content

Instantly share code, notes, and snippets.

@tampajohn
Last active May 25, 2018 18:06
Show Gist options
  • Save tampajohn/de93b5f2388dc9cfd9e0e47483f7a574 to your computer and use it in GitHub Desktop.
Save tampajohn/de93b5f2388dc9cfd9e0e47483f7a574 to your computer and use it in GitHub Desktop.
Golang quine without magic character counts
package main
import "fmt"
func main() {
(func(s string) { fmt.Printf(s, 0x60, s) })(`package main
import "fmt"
func main() {
(func(s string) { fmt.Printf(s, 0x60, s) })(%[1]c%[2]s%[1]c)
}
`)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment