18 lines
369 B
Go
18 lines
369 B
Go
|
package templates
|
||
|
|
||
|
type ErrorSplain struct {
|
||
|
Title string
|
||
|
Explanation string
|
||
|
Remediation string
|
||
|
Status int
|
||
|
}
|
||
|
|
||
|
func (T Templates) internalNewSplain(title string, explanation string, remediation string, status int) ErrorSplain {
|
||
|
return ErrorSplain{
|
||
|
Title: title,
|
||
|
Explanation: explanation,
|
||
|
Remediation: remediation,
|
||
|
Status: status,
|
||
|
}
|
||
|
}
|