Go parsers for web formats
MIT License
Published by tdewolff over 8 years ago
This is v2 that works with minify-v2 and the buffer package. It is mostly a performance upgrade from v1.1.0. Also refactored tests and increased test coverage. Some minor API changes have been made, namely the Next()
methods now return TokenType
and []byte
but not the total shifted number of bytes (used for freeing up bytes from the underlying buffer). This now happens through calling Free(int)
on the underlying buffer.
Changelog:
data
and text
for tokensBugfixes:
Published by tdewolff almost 9 years ago
This uses a more performant underlying buffer and which removes any need to copy byte slices. This release point is to be used with minify v1.1.0.
Published by tdewolff almost 9 years ago
This denotes a stable release point to be used with minify v1.0.0.