31 lines
547 B
Go
31 lines
547 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")
|
|
|
|
/*
|
|
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
|
|
}
|