Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PathSplit of the node's path PathSplit string = "__" )
Functions ¶
This section is empty.
Types ¶
type CanNext ¶
type CanNext interface { Next() (Node, error) SetNext(node Node) Render() (text string, tags []string) }
CanNext content - which can go next
type Context ¶
type Context struct { Current string `json:"current" binding:"required"` LN int `json:"ln" binding:"required"` Vars map[string]interface{} `json:"vars"` }
Context of the story
type ErrInk ¶
type ErrInk struct { LN int `json:"ln" binding:"required"` Message string `json:"msg" binding:"required"` }
ErrInk for transporting the error info
type Section ¶
type Section struct { Text string `json:"text"` Tags []string `json:"tags"` Opts []string `json:"opts"` OptsTags [][]string `json:"optsTags"` End bool `json:"end" binding:"required"` }
Section is rendered result of current story
Click to show internal directories.
Click to hide internal directories.