Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCommandName ¶ added in v0.1.0
IsCommandName checks if string is valid command name.
Command name regular expression:
^[A-Za-z][-0-9A-Za-z]*$
Types ¶
type Content ¶
type Content interface {
// WriterTo allows to write EMA form of content.
io.WriterTo
// ContentType always returns "data" or "text".
// Value "data" represents type Data, value "text" represents type Text.
ContentType() string
// contains filtered or unexported methods
}
Content represents part of document.
type Data ¶
Data represents part of document. It can be stored as JSON object.
type Document ¶
type Document struct {
Content []Content
}
Document consists of data or text parts.
func DocumentFromJSON ¶ added in v0.1.0
DocumentFromJSON creates new Document based on JSON array.
func ParseDocument ¶
ParseDocument read document from passed source.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.