diff options
| author | Jeff Carr <[email protected]> | 2025-08-22 02:50:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-22 02:50:00 -0500 |
| commit | e36d19e07842f4cd1f6df9344f73490b3a30a4e8 (patch) | |
| tree | bf38ad68299dd9a89d644d126940352c1d5ae2dc /make_chat.go | |
| parent | 4575c97aae18d899ee0fcd879217519138881a13 (diff) | |
??
Diffstat (limited to 'make_chat.go')
| -rw-r--r-- | make_chat.go | 42 |
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 |
