12 lines
261 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
// Spoiler represents a text that can spoil a future event.
type Spoiler struct {
Text string `json:"text" editable:"true" type:"textarea"`
}
// String returns the containing text.
func (spoiler *Spoiler) String() string {
return spoiler.Text
}