ianprime0509 / zig-xml

XML parser for Zig
http://ianjohnson.dev/zig-xml/
BSD Zero Clause License
14 stars 3 forks source link

feat: move decoder type to options struct #23

Closed ianprime0509 closed 11 months ago

ianprime0509 commented 11 months ago

Closes #20

This makes the API simpler to use. No flexibility is sacrificed, because users who want to pass in a non-default-initialized decoder object can just use the TokenReader and Reader init functions directly.