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

Allow custom deserialization with callbacks #16

Open
smola opened this issue Oct 25, 2018 · 2 comments
Open

Allow custom deserialization with callbacks #16

smola opened this issue Oct 25, 2018 · 2 comments

Comments

@smola
Copy link

smola commented Oct 25, 2018

Some time ago I forked this project into src-d/gcfg. The goal of the fork was using this library to parse git's config files in src-d/go-git.

The main change is this one: src-d@bdb40b4

It adds a new function to parse a file using a custom callback. This callback can be used to implement deserialization to custom structures or just other kind of deserialization logic.

Is this something that you would consider adding? If that is the case, it'd be great to read your feedback and I'd be willing to make a PR.

@speter
Copy link
Contributor

speter commented Oct 27, 2018 via email

@smola
Copy link
Author

smola commented Oct 29, 2018

@speter Thanks! Sounds good. We can adapt to the new approach in go-git once it lands. We'll keep our fork at the moment, since it's very low maintenance for us (just 1 fix since it started).

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

2 participants