chatpb/example.go

28 lines
479 B
Go

package chatpb
import (
"go.wit.com/log"
)
func ExampleChat() *Chats {
conversation := NewChats()
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
}