You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nikita-tokarch-uk/pkg/content/error.go

19 lines
302 B

package content
// Error content data
type Error struct {
_ interface{} `template:"error.go.tmpl"`
Message string
}
// Title returns error title
func (e Error) Title() string {
return e.Message
}
// Description returns error description
func (e Error) Description() string {
return e.Message
}