summaryrefslogtreecommitdiff
path: root/example.go
blob: d22f39c8ff7ecb11f91aefdbf8e2cf6bd2b18610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package chatpb

import (
	"go.wit.com/log"
)

func ExampleChat() *Chats {
	conversation := NewChats()

	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)
	return conversation
}