Skip to content

Instantly share code, notes, and snippets.

@n2p5
Created May 24, 2021 20:21
Show Gist options
  • Save n2p5/ac7dd0aecaa5dbe37b2cb0fca6829cf6 to your computer and use it in GitHub Desktop.
Save n2p5/ac7dd0aecaa5dbe37b2cb0fca6829cf6 to your computer and use it in GitHub Desktop.
go func() { your <- self }()
package main
import "fmt"
func main() {
your := make(chan func(), 1)
go func() { your <- self }()
(<-your)()
}
func self() {
fmt.Printf("%v\n\nconst program = \u0060%v\u0060", program, program)
}
const program = `package main
import "fmt"
func main() {
your := make(chan func(), 1)
go func() { your <- self }()
(<-your)()
}
func self() {
fmt.Printf("%v\n\nconst program = \u0060%v\u0060", program, program)
}`
@n2p5
Copy link
Author

n2p5 commented May 24, 2021

This is a quine that tells you to go func() { your <- self }()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment