summaryrefslogtreecommitdiff
path: root/dumpchat.go
diff options
context:
space:
mode:
Diffstat (limited to 'dumpchat.go')
-rw-r--r--dumpchat.go12
1 files changed, 12 insertions, 0 deletions
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())
+ }
+}