23 lines
378 B
Go
23 lines
378 B
Go
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
|
|
}
|