package tree import "github.com/miekg/dns" // Walk performs fn on all authoritative values stored in the tree in // in-order depth first. If a non-nil error is returned the Walk was interrupted // by an fn returning that error. If fn alters stored values' sort // relationships, future tree operation behaviors are undefined. func (t *Tree) Walk(fn func(*Elem, map[uint16][]dns.RR) error) error { if t.Root == nil { return nil } return t.Root.walk(fn) } func (n *Node) walk(fn func(*Elem, map[uint16][]dns.RR) error) error { if n.Left != nil { if err := n.Left.walk(fn); err != nil { return err } } if err := fn(n.Elem, n.Elem.m); err != nil { return err } if n.Right != nil { if err := n.Right.walk(fn); err != nil { return err } } return nil } sitory.
summaryrefslogtreecommitdiff
path: root/api/feed.go (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2021-05-07Security fix: any user can delete any feedGravatar Frédéric Guillot 2-1/+7
Regression introduced in commit 51fb949.
2021-05-02Fix password reset via CLIGravatar jacekk 1-0/+1
2021-04-30Increase default batch size valueGravatar Frédéric Guillot 2-3/+3
2021-04-30Handle RSS feed title with encoded Unicode entitiesGravatar Frédéric Guillot 2-1/+20
2021-04-26show #unread per category in category list, not #feedsGravatar pennae 15-17/+34
the number of feeds in the category is currently displayed twice, and a lot less useful than the number of unread items in the category.
2021-04-25Bump github.com/lib/pq from 1.10.0 to 1.10.1Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.0 to 1.10.1. - [Release notes](https://github.com/lib/pq/releases) - [Commits](https://github.com/lib/pq/compare/v1.10.0...v1.10.1) Signed-off-by: dependabot[bot] <support@github.com>
2021-04-25Fix filtering doesn't work when selecting from multiple found feedsGravatar 野辺かない 1-0/+2
2021-04-19Bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16Gravatar dependabot[bot] 2-3/+3
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.9.15 to 2.9.16. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.9.15...v2.9.16) Signed-off-by: dependabot[bot] <support@github.com>
2021-04-14Use an appropriate color for visited links on dark themeGravatar Vincent Bernat 4-1/+5
The contrast between background and purple for visited links was too low (1.69). Use a brighter purple for the dark theme (contrast 6.87).
2021-04-02Fix typo in reader/json/doc.goGravatar yue 1-1/+1