blob: c44302739346fd2039db1a9cd145778fc890a6c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package chatpb
import (
"go.wit.com/log"
)
func ExampleChat() *Chats {
conversation := NewChats()
t := conversation.AddTable()
t.AddRow([]string{"apple", "pear"})
conversation.AddGeminiComment("funny")
/*
gchat := conversation.AddGeminiComment("funny")
snip := new(CodeSnippet)
snip.Filename = "log/snip1.txt"
gchat.Snippets = append(gchat.Snippets, snip)
*/
conversation.AddUserComment("yes")
conversation.AddGeminiComment("I like astronomy")
dump := conversation.FormatTEXT()
log.Println(dump)
return conversation
}
|