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

Add support for remaining array types #260

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Conversation

akshayjshah
Copy link
Contributor

Add wrappers for common array types. This fixes #136.

(Note that this is stacked on top of #258.)

Add wrappers for common array types. This fixes #136.

// Durations constructs a field that carries a slice of time.Durations. Like
// Duration, it represents each duration as an integer number of nanoseconds.
func Durations(key string, ds []time.Duration) zapcore.Field {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's especially bizarre that we have this, but not the singular (nor special encoder support for it); in the vein of my comment on #258 .

Copy link
Contributor

@jcorbin jcorbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accepting on our verbal agreement that a soon to follow PR will resolve the time.{Time,Duration} concerns.

@akshayjshah
Copy link
Contributor Author

Indeed!

@akshayjshah akshayjshah merged commit d6f2dda into ajs-arrays Feb 1, 2017
@akshayjshah akshayjshah deleted the ajs-more-arrays branch February 1, 2017 22:02
akshayjshah added a commit that referenced this pull request Feb 1, 2017
Add wrappers for common array types. This fixes #136.
akshayjshah added a commit that referenced this pull request Feb 1, 2017
Add wrappers for common array types. This fixes #136.
akshayjshah added a commit that referenced this pull request Feb 15, 2017
Add wrappers for common array types. This fixes #136.
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