Documentation
¶
Index ¶
- Constants
- func Apply(data Dot, tmpl Template, name string) (byteS []byte, err error)
- func DoIt() error
- func FileName(data Dot, name string) string
- func HaveErrors(d *dot.Dot) (*dot.Dot, bool)
- func Meta(text string) (string, error)
- func NewData(name string) *dot.Dot
- func SeeError(data *dot.Dot, err error, prefix string) bool
- func Source(byteS []byte) ([]byte, error)
- func Write(data Dot, filename string, byteS []byte) error
- type Dot
- type Template
Constants ¶
View Source
const ( // ErrorName is the name of a node-type error ErrorName = dot.ErrorName // ErrorID is the ID of of a node of type error ErrorID = dot.ErrorID )
constants borrowed from package `dot`
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply template name to data; evaluate name (less Ext) against data as filenameWriteFile into dirPath
func DoIt ¶
func DoIt() error
DoIt performs it all:
- file system analysis (where to look)
- collection of metadata from templates
- execution of all relevant templates
func HaveErrors ¶
HaveErrors returns the subnode with errors nad true, iff any - or nil, false
Types ¶
type Dot ¶
type Dot interface { String() string G(keys ...string) *dot.Dot Clone() *dot.Dot PrintTree(prefix ...string) *dot.Dot Fetch(key string) (interface{}, bool) // for ShowErrors SeeError(myName, myThing string, err error) bool }
Dot defines what is used from "container/ccsafe/dot" to register errors
Click to show internal directories.
Click to hide internal directories.