Added ability to readback output from command line

Updated readme
This commit is contained in:
NotZippy
2018-10-24 10:23:09 -07:00
parent 87c9e56322
commit cdef0b75a8
4 changed files with 58 additions and 3 deletions

View File

@@ -23,6 +23,15 @@ type (
IsError bool
}
)
// Return a new error object
func NewError(source, title,path,description string) *Error {
return &Error {
SourceType:source,
Title:title,
Path:path,
Description:description,
}
}
// Creates a link based on the configuration setting "errors.link"
func (e *Error) SetLink(errorLink string) {