diff options
| author | Castor Gemini <[email protected]> | 2025-08-22 06:18:18 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-22 06:18:18 -0500 |
| commit | 249c2a97b8b5d535cda6e03d8d38374bc90e53d6 (patch) | |
| tree | 563ef07d5370b412042592e2a09914aca6a53d13 | |
| parent | fbc5ebe4cebc94a1ac63b52788087c9dfbc46e0f (diff) | |
Log doOutput to /tmp/gemini-output.log
| -rw-r--r-- | doOutput.go | 14 |
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) + } } |
