templates/errsplain.go
2025-01-12 03:47:45 -07:00

17 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,
}
}