Adds support for tinygo 0.32, thereby fixing https://github.com/philhofer/fwd/issues/29
Passes tests on macos intel:
- go 1.21.9:
- go test
- go 1.21.9 / tinygo 0.32 prerelease:
- tinygo test
- tinygo test -target wasi
I used go1.14 as version, to match other projects consuming this
module (e.g. github.com/tinylib/msgp).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The godoc2md tool has been deprecated, and is no longer maintained; it
has some bugs which prevent it from generating correct links (so I removed
those).
Added a badge to the documentation on pkg.go.dev, which perhaps should be
used as replacement for the docs in the README itself.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The (*Reader).Skip() code did not handle skip sizes
above the buffer size correctly, because the inner
reader loop only looped while 'r.buffered() < n', and
that condition is obviously violated when the reader
successfully buffers more bytes than are to be skipped.
Refactor this method to be a little shorter and hopefully
much clearer (and more correct) and add test coverage that
exercises this code better.
2020-11-24 08:35:57 -08:00
7 changed files with 426 additions and 84 deletions