Documentation
¶
Index ¶
- Constants
- func Attachments(value string) string
- func Author(value string) string
- func Body(value string) string
- func CommentedBy(value string) string
- func Comments(value string) string
- func Date(property DateName, year, month, day int) string
- func DateFrom(property DateName, year, month, day int) string
- func DateRange(property DateName, year1, month1, day1, year2, month2, day2 int) string
- func DateTo(property DateName, year, month, day int) string
- func Group(value string) string
- func HasStar() string
- func IsDraft() string
- func IsShared() string
- func IsUnread() string
- func Join(queries ...string) string
- func LikedBy(value string) string
- func Missing(property MissingName) string
- func Or() string
- func Property(property PropertyName, keyword string) string
- func Sort(property SortName, asc bool) string
- func Tag(value string) string
- func Title(value string) string
- type DateName
- type MissingName
- type PropertyName
- type SortName
Constants ¶
View Source
const ( SortNameScore = SortName("score") SortNameChangedAt = SortName("changed_at") SortNameCreatedAt = SortName("created_at") SortNameStars = SortName("stars") SortNameComments = SortName("comments") SortNameLikes = SortName("likes") )
Concrete properties to sort posts.
View Source
const ( PropertyNameTitle = PropertyName("title") PropertyNameBody = PropertyName("body") PropertyNameComments = PropertyName("comments") PropertyNameAttachments = PropertyName("attachments") PropertyNameAuthor = PropertyName("author") PropertyNameCommentedBy = PropertyName("commented_by") PropertyNameLikedBy = PropertyName("liked_by") PropertyNameTag = PropertyName("tag") PropertyNameGroup = PropertyName("group") )
Concrete properties to search the keyword from posts
View Source
const ( DateNameCreatedAt = DateName("created_at") DateNameChangedAt = DateName("changed_at") )
Concrete properties to search the keyword from posts
View Source
const (
MissingNameTag = MissingName("tag")
)
Concrete properties to search the keyword from posts
Variables ¶
This section is empty.
Functions ¶
func Attachments ¶
Attachments searches a keyword from attachments
func CommentedBy ¶
CommentedBy searches a keyword from commented_by
func Missing ¶
func Missing(property MissingName) string
Missing specifies a property to search posts which is not filled
func Property ¶
func Property(property PropertyName, keyword string) string
Property specifies a property to search the keyword from posts
Types ¶
type MissingName ¶
type MissingName string
MissingName specifies a property to search the keyword from posts
func (MissingName) String ¶
func (s MissingName) String() string
type PropertyName ¶
type PropertyName string
PropertyName specifies a property to search the keyword from posts
func (PropertyName) String ¶
func (s PropertyName) String() string
Click to show internal directories.
Click to hide internal directories.