Dan Anglin
3d20adfa57
- Replace .reuse/dep5 with the new REUSE.toml file. - Add licensing information to REUSE.toml and remove the licensing headers from the source files.
22 lines
488 B
Go
22 lines
488 B
Go
package model
|
|
|
|
const (
|
|
TimelineCategoryHome = "home"
|
|
TimelineCategoryPublic = "public"
|
|
TimelineCategoryTag = "tag"
|
|
TimelineCategoryList = "list"
|
|
)
|
|
|
|
type InvalidTimelineCategoryError struct {
|
|
Value string
|
|
}
|
|
|
|
func (e InvalidTimelineCategoryError) Error() string {
|
|
return "'" +
|
|
e.Value +
|
|
"' is not a valid timeline category (valid values are " +
|
|
TimelineCategoryHome + ", " +
|
|
TimelineCategoryPublic + ", " +
|
|
TimelineCategoryTag + ", " +
|
|
TimelineCategoryList + ")"
|
|
}
|