Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow configuring NewDecoder via callbacks #193

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Sep 26, 2024

  1. feat: allow configuring NewDecoder/NewEncoder via callbacks

    Since gorillaGH-59 was rejected on the basis that it wasn't useful enough to
    break the public API. I took a stab at an alternate solution that
    doesn't break the public API. While still allowing one to configure the
    encoder and decoder when defining it as a package global (as recommended
    by the README).
    
    ```go
    var decoder = NewDecoder(WithIgnoreUnknownKeysDecoderOpt(true))
    ```
    lithammer committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    ef9413b View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    4423cb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    550ea33 View commit details
    Browse the repository at this point in the history