Skip to content

Instantly share code, notes, and snippets.

@ijt
Created November 7, 2012 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijt/4029658 to your computer and use it in GitHub Desktop.
Save ijt/4029658 to your computer and use it in GitHub Desktop.
A quine in Go
package main
import "fmt"
func main() {
s := "package main\n\nimport \"fmt\"\n\nfunc main() {\n\ts := %#v\n\tfmt.Printf(s, s)\n}\n"
fmt.Printf(s, s)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment