diff options
| author | Jeff Carr <[email protected]> | 2025-08-21 14:18:55 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-08-21 14:18:55 -0500 |
| commit | d7dec7865ad74d4ffe6f56aaf27906ea1a52171d (patch) | |
| tree | 950e650eb3151ecd798b51dccf627b47fc7de080 /example.go | |
| parent | 6e40b1bab429c042d4310ad8d945e97a64957d1b (diff) | |
make ConfigSave() ConfigLoad()
Diffstat (limited to 'example.go')
| -rw-r--r-- | example.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/example.go b/example.go new file mode 100644 index 0000000..d22f39c --- /dev/null +++ b/example.go @@ -0,0 +1,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 +} |
