Skip to content

Instantly share code, notes, and snippets.

@bouk
Last active Jun 26, 2019
Embed
What would you like to do?
Quines
package main
import "fmt"
func main() {
p := "package main\n\nimport \"fmt\"\n\nfunc main() {\n\tp := %q\n\tfmt.Printf(p, p)\n}"
fmt.Printf(p, p)
}
d = DATA.read
puts d, "__END__", d
__END__
d = DATA.read
puts d, "__END__", d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment