blob: ff33b0518f9c81060f02509097f11b2d9e039402 (
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
|
package chatpb
import (
"go.wit.com/log"
)
func ExampleChat() *Chats {
conversation := NewChats()
t := conversation.AddTable()
t.AddRow([]string{"apple", "pear"})
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
}
|