Created
November 7, 2012 05:07
-
-
Save ijt/4029658 to your computer and use it in GitHub Desktop.
A quine in Go
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" | |
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