Documentation
¶
Overview ¶
Package errs provides a common set of error for the pkg n
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EOF indicates the end of a file equal to io.EOF EOF = errors.New("EOF") // BOF indicates the begining of a file BOF = errors.New("BOF") // TmplVarsNotFoundError indicates that template variables were not found TmplVarsNotFoundError = Error{Message: "template variables were not found", Type: ErrorTypeTmplVarsNotFound} // TmplTagsInvalidError indicates that the template start and/or end tags were invalid TmplTagsInvalidError = Error{Message: "start and/or end tag are invalid", Type: ErrorTypeTmplTagsInvalid} )
Functions ¶
func TmplEndTagNotFoundError ¶ added in v1.1.15
TmplEndTagNotFoundError returns true if the given err was created by NewTmplEndTagNotFound
Types ¶
type Error ¶
Error provides a common error type for N types
func NewTmplEndTagNotFoundError ¶ added in v1.1.15
NewTmplEndTagNotFoundError indicates that a start tag was found but not an end tag or a template variable
type ErrorType ¶
type ErrorType string
ErrorType is an enumeration of well known error types
const ( // ErrorTypeTmplEndTagNotFound indicates that a start tag was found but not an end tag or a template variable ErrorTypeTmplEndTagNotFound ErrorType = "TmplEndTagNotFound" // ErrorTypeTmplTagsInvalid indicates that the template start and/or end tags were invalid ErrorTypeTmplTagsInvalid ErrorType = "TmplTagsInvalid" // ErrorTypeTmplVarsNotFound indicates that template variables were not found ErrorTypeTmplVarsNotFound ErrorType = "TmplVarsNotFound" )
Click to show internal directories.
Click to hide internal directories.