Skip to content

go: switch lexer and writer to functional options pattern #738

@wkalt

Description

@wkalt

The current way in which the lexer and writer accept options is clunky. It would be better to use the pattern described here: https://golang.cafe/blog/golang-functional-options-pattern.html. We may also want to supply some options to the Reader implementation in this manner. Currently it takes no options, but would benefit from e.g options to validate CRCs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestgo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions