summaryrefslogtreecommitdiff
path: root/make_chat.go
diff options
context:
space:
mode:
Diffstat (limited to 'make_chat.go')
-rw-r--r--make_chat.go42
1 files changed, 0 insertions, 42 deletions
diff --git a/make_chat.go b/make_chat.go
index b5f62cf..4e31aed 100644
--- a/make_chat.go
+++ b/make_chat.go
@@ -1,45 +1,5 @@
package chatpb
-import (
- "go.wit.com/log"
-)
-
-func TestChat() {
- conversation := NewChats()
-
- /*
- chat := new(Chat)
- chat.Content = "this was fun"
-
- t := new(Table)
- t.Columns = 4
- // t.Rows = append(t.Rows, []string{"a", "b"})
- chat.Table = t
-
- r := new(Row)
- r.Fields = []string{"a", "b"}
- t.Rows = append(t.Rows, r)
-
- r = new(Row)
- r.Fields = []string{"1", "", "2", "3"}
- t.Rows = append(t.Rows, r)
-
- conversation.AppendNew(chat)
- */
-
- t := conversation.AddTable()
- t.AddRow([]string{"apple", "pear"})
-
- conversation.AddGeminiComment("funny")
- conversation.AddUserComment("yes")
-
- conversation.AddGeminiComment("I like astronomy")
-
- dump := conversation.FormatTEXT()
-
- log.Println(dump)
-}
-
func (t *Table) AddRow(f []string) {
r := new(Row)
r.Fields = f
@@ -61,8 +21,6 @@ func (c *Chats) AddTable() *Table {
r.Fields = []string{"1", "", "2", "3"}
t.Rows = append(t.Rows, r)
- chat.Table = t
-
c.AppendNew(chat)
return t