summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go3
-rw-r--r--template.go21
2 files changed, 23 insertions, 1 deletions
diff --git a/main.go b/main.go
index d9eaa2b..7729ab7 100644
--- a/main.go
+++ b/main.go
@@ -165,7 +165,8 @@ func run() error {
y, _ := p[1].enguarde()
fmt.Print(x, y)
- return nil
+
+ return writeVerbatim()
}
func main() {
diff --git a/template.go b/template.go
new file mode 100644
index 0000000..df215e5
--- /dev/null
+++ b/template.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "embed"
+)
+
+//go:embed templates/verbatim
+var verbatim embed.FS
+
+func writeVerbatim() error {
+ entries, err := verbatim.ReadDir("templates/verbatim")
+ if err != nil {
+ return err
+ }
+
+ for _, e := range entries {
+ print(e.Name())
+ }
+
+ return nil
+}