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

Consider to make jsontext.Decoder/Encoder as interface #56

Open
morlay opened this issue Oct 19, 2024 · 0 comments
Open

Consider to make jsontext.Decoder/Encoder as interface #56

morlay opened this issue Oct 19, 2024 · 0 comments

Comments

@morlay
Copy link

morlay commented Oct 19, 2024

With this changes,

we could make any json-compat configuration language (like toml/yaml/msgpack/urlencoded) easy to

define single struct once, unmarshal/marshal manies

  • unmarshal from custom wrapper of jsontext.Decoder (configuration language token -> json token -> go value)
  • marshal to custom wrapper of jsontext.Encoder (go value -> json token -> configuration language token )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant