summaryrefslogtreecommitdiff
path: root/example.go
blob: e4964634f089ff9be72e47968a9871717bfae963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package chatpb

import (
	"go.wit.com/log"
)

func ExampleChat() *Chats {
	conversation := NewChats()

	conversation.AddRegexComment("funny")

	/*
		gchat := conversation.AddRegexComment("funny")
		snip := new(CodeSnippet)
		snip.Filename = "log/snip1.txt"
		gchat.Snippets = append(gchat.Snippets, snip)
	*/

	conversation.AddUserComment("yes")

	conversation.AddRegexComment("I like astronomy")

	dump := conversation.FormatTEXT()

	log.Println(dump)
	return conversation
}