17 Commits

Author SHA1 Message Date
Martin Angers
eec8e87fed Revert "Re-orangize code for compitable"
This reverts commit 6802fc5555.
2024-09-06 10:14:32 -04:00
amikai
6802fc5555 Re-orangize code for compitable
- We don't need to use the iter.Seq2 type; instead, we can use func(yield func(int, *Selection) bool). In fact, the underlying type of iter.Seq2 is func(yield func(int, *Selection) bool), so we don't need to upgrade the go.mod version.
- For for-range testing in version 1.23, we can use build tags to compile only for versions above 1.23.
2024-07-24 15:02:18 +08:00
amikai
3f0ba08339 Support EachIter based on 1.23 iterator 2024-07-20 11:38:01 +08:00
Amelia
65c0ed3569 Impl PuerkitoBio/goquery#466 2024-02-22 17:12:50 +01:00
Martin Angers
409e94058f make test assert helpers private 2014-11-07 09:20:20 -05:00
Martin Angers
040cf98281 change paths to golang.org/x/, fails to build because cascadia has to switch too 2014-11-05 20:30:33 -05:00
Martin Angers
330b1c8132 simpler for-range construct to loop over selections 2014-07-29 22:55:19 -04:00
Martin Angers
41a4211e59 add test that loops with a standard for-loop (see #41) 2014-07-29 22:26:47 -04:00
Martin Angers
948b88c36f add EachWithBreak(), fixes #13 2013-05-24 11:25:42 -04:00
Dobrosław Żybort
474b169363 Update exp/html import paths 2013-02-12 20:32:16 +01:00
Martin Angers
6669ef001f remove Document.Root, Document is itself a Selection (using embedded struct) 2012-10-14 12:28:27 -04:00
Martin Angers
01f04bca8b add Parent() and ParentFiltered(), refactor tests using Asserts...() 2012-09-04 09:52:19 -04:00
Martin Angers
6e1e76af6b refactor Document to make Root a Selection, with all API available 2012-09-02 14:45:50 -04:00
Martin Angers
bae24062b4 add Contents() and Children() with tests. 2012-09-02 14:07:18 -04:00
Martin Angers
8ddd8c6655 finalize iterators, with tests and comments. 2012-09-01 10:55:01 -04:00
Martin Angers
d17b003dc8 fix tests after reorganization 2012-08-30 17:38:51 -04:00
Martin Angers
de74d0bf97 reorganize code in what seems like a sane structure 2012-08-30 17:35:41 -04:00