mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-11-03 04:27:16 -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
|
||
|
}
|