Created
May 24, 2021 20:21
-
-
Save n2p5/ac7dd0aecaa5dbe37b2cb0fca6829cf6 to your computer and use it in GitHub Desktop.
go func() { your <- self }()
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() { | |
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) | |
}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a quine that tells you to
go func() { your <- self }()