mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-09-29 04:45:55 -04:00
20 lines
244 B
Go
20 lines
244 B
Go
package post
|
|
|
|
type Post struct {
|
|
ID string
|
|
|
|
Subject string
|
|
}
|
|
|
|
func (post Post) FilterValue() string {
|
|
return post.Subject
|
|
}
|
|
|
|
func (post Post) Title() string {
|
|
return post.Subject
|
|
}
|
|
|
|
func (post Post) Description() string {
|
|
return post.ID
|
|
}
|