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 }