Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllUrls ¶
func FindAllUrlsIndex ¶
[[start, end], [start, end], ...]
func RegisterFinder ¶
func RegisterFinder(finder Finder)
Types ¶
type MatchIndices ¶
type MatchIndices []int
func (MatchIndices) ByteSliceOf ¶
func (m MatchIndices) ByteSliceOf(b []byte, i int) []byte
func (MatchIndices) Len ¶
func (m MatchIndices) Len() int
type RichContent ¶
func MakeRichContent ¶
func MakeRichContent(begin, end int, urlString string, components []Component) RichContent
type RichContentByBeginThenLongest ¶
type RichContentByBeginThenLongest []RichContent
func (RichContentByBeginThenLongest) Len ¶
func (c RichContentByBeginThenLongest) Len() int
func (RichContentByBeginThenLongest) Less ¶
func (c RichContentByBeginThenLongest) Less(i, j int) bool
func (RichContentByBeginThenLongest) Swap ¶
func (c RichContentByBeginThenLongest) Swap(i, j int)
type UrlPattern ¶
type UrlPattern struct { Pattern *regexp.Regexp Handler UrlPatternHandler }
type UrlPatternHandler ¶
Click to show internal directories.
Click to hide internal directories.