Added arn to the main repository
This commit is contained in:
11
arn/Spoiler.go
Normal file
11
arn/Spoiler.go
Normal file
@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user