Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrUnresolvable ¶
type ErrUnresolvable struct{}
ErrUnresolvable is returned by Render if the template string tries to resolve unaccesible node properties.
func (ErrUnresolvable) Error ¶
func (ErrUnresolvable) Error() string
type Factory ¶
type Factory struct { Graph *graph.Graph DotValues map[string]*LazyValue Language *extensions.LanguageExtension }
Factory generates Renderers
func NewFactory ¶
NewFactory generates a new Render factory
type LazyValue ¶
type LazyValue struct {
// contains filtered or unexported fields
}
LazyValue wraps a ValueThunk in an interface and provides a way to cache the thunk evaluation.
type PrepareThunk ¶
type PrepareThunk struct { resource.Task // prevent hashing thunks into a single value Data []byte Thunk func(*Factory) (resource.Task, error) `hash:"ignore"` }
PrepareThunk returns a possibly lazily evaluated preparer
type Renderer ¶
type Renderer struct { Graph func() *graph.Graph ID string DotValue string DotValuePresent bool Language *extensions.LanguageExtension // contains filtered or unexported fields }
Renderer to be passed to preparers, which will render strings
Directories ¶
Path | Synopsis |
---|---|
Package extensions defines custom extensions to the go text templating language.
|
Package extensions defines custom extensions to the go text templating language. |
platform
Package platform queries the underlying operating system
|
Package platform queries the underlying operating system |
Click to show internal directories.
Click to hide internal directories.