Documentation
¶
Index ¶
- func LevenshteinDistance(a, b []rune) int
- func ParseDateTime(s string) (_time.Time, error)
- func ParseDuration(s string) (_time.Duration, error)
- func Pluralize(count int64, singular string) string
- func Relative(seconds int64) string
- func Score(q, b [][]rune) int
- func Tokenize(s string, tokens [][]rune) [][]rune
- type InternalError
- type OPML
- type OPMLBody
- type OPMLHead
- type OPMLOutline
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LevenshteinDistance ¶ added in v0.2.1
func ParseDuration ¶
Only supports minutes, hours, and days
Types ¶
type InternalError ¶
type InternalError struct {
Message string
}
func NewInternalError ¶
func NewInternalError(message string) *InternalError
func (*InternalError) Error ¶
func (e *InternalError) Error() string
type OPML ¶ added in v0.2.0
type OPML struct {
XMLName xml.Name `xml:"opml"`
Version string `xml:"version,attr"`
Head OPMLHead `xml:"head"`
Body OPMLBody `xml:"body"`
}
func ParseOPMLBytes ¶ added in v0.4.1
func ParseOPMLFile ¶ added in v0.3.0
type OPMLBody ¶ added in v0.3.0
type OPMLBody struct {
Text string `xml:"text,attr,omitempty"`
Outltines []*OPMLOutline `xml:"outline"`
}
type OPMLOutline ¶ added in v0.3.0
type OPMLOutline struct {
Text string `xml:"text,attr,omitempty"`
Description string `xml:"description,attr,omitempty"`
XMLURL string `xml:"xmlUrl,attr,omitempty"`
Outlines []*OPMLOutline `xml:"outline"`
}
Click to show internal directories.
Click to hide internal directories.