mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05: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
|
|
}
|