From 710693b18a88643ac75bee89695f5f286923384e Mon Sep 17 00:00:00 2001 From: Castor Regex Date: Sun, 31 Aug 2025 22:31:11 -0500 Subject: [PATCH] feat: add dumpchat function --- doPlayback.go | 1 + dumpchat.go | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 dumpchat.go diff --git a/doPlayback.go b/doPlayback.go index d6ce604..2db75ae 100644 --- a/doPlayback.go +++ b/doPlayback.go @@ -79,6 +79,7 @@ func listChats(chats *chatpb.Chats) { if numChats > 0 { lastChat := chats.GetChats()[numChats-1] log.Printf("The current Gemini API session is UUID: %s\n", lastChat.GetUuid()) + dumpchat(lastChat) } } diff --git a/dumpchat.go b/dumpchat.go new file mode 100644 index 0000000..e40a6f7 --- /dev/null +++ b/dumpchat.go @@ -0,0 +1,12 @@ +package main + +import ( + "go.wit.com/lib/protobuf/chatpb" + "go.wit.com/log" +) + +func dumpchat(chat *chatpb.Chat) { + for _, entry := range chat.GetEntries() { + log.Printf("Entry: %s\n", entry.GetUuid()) + } +}