summaryrefslogtreecommitdiff
path: root/doOutput.go
diff options
context:
space:
mode:
Diffstat (limited to 'doOutput.go')
-rw-r--r--doOutput.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/doOutput.go b/doOutput.go
index 0ec3053..2db39ae 100644
--- a/doOutput.go
+++ b/doOutput.go
@@ -1,4 +1,18 @@
package main
+import (
+ "log"
+ "os"
+)
+
func doOutput(s string) {
+ f, err := os.OpenFile("/tmp/gemini-output.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
+ if err != nil {
+ log.Println(err)
+ return
+ }
+ defer f.Close()
+ if _, err := f.WriteString(s + "\n"); err != nil {
+ log.Println(err)
+ }
}