templates/errsplain.go

18 lines
369 B
Go
Raw Permalink Normal View History

2025-01-12 10:47:45 +00:00
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,
}
}