dmitri.shuralyov.com/scratch/...

quine: add load-bearing trailing space

It's needed for this quine to work. Upstream has it. See discussion in
https://github.com/alangpierce/golang-quine/pull/1#issuecomment-226917669.
dmitshur committed 8 months ago commit 5eb48b5f5d31d39777719edb35d37b724f183dc8
Collapse all
quine/quine.go
@@ -6,11 +6,11 @@ func main() {
	code := `package main

import "fmt"

func main() {
	code :=
	code := 
	fmt.Print(code[:51] + "\u0060" + code + "\u0060" + code[51:])
}
`
	fmt.Print(code[:51] + "\u0060" + code + "\u0060" + code[51:])
}