aboutsummaryrefslogtreecommitdiff
path: root/quine
diff options
context:
space:
mode:
authorMoritz Poldrack2021-04-25 21:08:33 +0200
committerMoritz Poldrack2021-04-25 21:13:00 +0200
commit888bff1170d5586a6ef910d0e84f60385aee50b7 (patch)
treeb9564399584c4526577b03c6462835ba4fb14416 /quine
parent71d6f7a5e9ad9673da235ab0996cd8e6eb50f942 (diff)
added a small quine
Diffstat (limited to 'quine')
-rw-r--r--quine/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/quine/main.go b/quine/main.go
new file mode 100644
index 0000000..7f5313f
--- /dev/null
+++ b/quine/main.go
@@ -0,0 +1,6 @@
+package main
+import _ "embed"
+import "os"
+//go:embed main.go
+var q []byte
+func main(){f,_:=os.Open("main.go");f.Write(q)}