Documentation
¶
Index ¶
Constants ¶
View Source
const Hidden = `hidden`
Variables ¶
View Source
var DefaultFilter = Tags{Hidden: Not}
View Source
var Re = regexp.MustCompile(`[+-]?[a-zA-Z][a-zA-Z0-9_]*`)
Note: left-most regexp means we match the "-" if it is present
Functions ¶
func TagsSqlFilter ¶
Filters according to OR-ing positive tags (not beginning with '-'), removing negative tags (beginning with '-')
Types ¶
type Tags ¶
func NormalizeTags ¶
Becaue the array might be from e.g. tags=foo+bar&tags=baz, first join, then split again. Then remove duplicates, have "-tag" remove "+tag" and "tag", have "+tag" remove "tag"
Click to show internal directories.
Click to hide internal directories.