Documentation
¶
Overview ¶
Package tagscan extracts control tags like <dtmf>1</dtmf> from a streamed text response, so a processor can act on the tags and speak the rest. It buffers across chunks, since a tag may span several, and holds back a trailing partial tag until it completes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner extracts <tag>value</tag> control tags for a fixed set of tag names from a stream of text chunks, returning the text with the tags removed.
Click to show internal directories.
Click to hide internal directories.