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

[v1, 3/8] Export the JSON encoder constructor #114

Merged
merged 1 commit into from
Aug 1, 2016

Conversation

akshayjshah
Copy link
Contributor

Export a constructor for the JSONEncoder type.

This is the third of eight PRs to finish up the large pre-v1.0.0 refactoring:

  • Meta constructor takes an encoder
  • Export Encoder type
  • Export the JSON encoder constructor
  • Add a NewLogger constructor and remove NewJSON
  • Remove StubTime
  • Export the Hook type
  • Remove Encoder.AddFields (since we already have Field.AddTo)
  • Improve GoDoc.

The remaining items in the v1 milestone shouldn't require large-scale changes.

Users will need to pass an encoder to the logger constructor, so we need
to export the JSON encoder's constructor.
@prashantv
Copy link
Collaborator

lgtm

@akshayjshah akshayjshah merged commit 01db07a into master Aug 1, 2016
@akshayjshah akshayjshah deleted the ajs-export-encoder-constructors branch August 1, 2016 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants