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.
19 lines
302 B
19 lines
302 B
3 years ago
|
package content
|
||
|
|
||
|
// Error content data
|
||
|
type Error struct {
|
||
|
_ interface{} `template:"error.go.tmpl"`
|
||
3 years ago
|
|
||
|
Message string
|
||
3 years ago
|
}
|
||
3 years ago
|
|
||
|
// Title returns error title
|
||
|
func (e Error) Title() string {
|
||
|
return e.Message
|
||
|
}
|
||
|
|
||
|
// Description returns error description
|
||
|
func (e Error) Description() string {
|
||
|
return e.Message
|
||
|
}
|