Documentation
¶
Overview ¶
Package context helps to populate the application context.
The main goal of the application context is to gather all the data which will be applied to a data-driven template.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrbitContext ¶
type OrbitContext struct { // TemplateFilePath is the path of a data-driven template. TemplateFilePath string // Payload map contains data from various entries. Payload map[string]interface{} }
OrbitContext contains the data necessary for executing a data-driven template.
func NewOrbitContext ¶
func NewOrbitContext(templateFilePath string, payload string) (*OrbitContext, error)
NewOrbitContext creates an instance of OrbitContext.
Click to show internal directories.
Click to hide internal directories.