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

Test on Go 1.10 and 1.9 #577

Merged
merged 4 commits into from
Apr 13, 2018
Merged

Test on Go 1.10 and 1.9 #577

merged 4 commits into from
Apr 13, 2018

Conversation

akshayjshah
Copy link
Contributor

Update our Travis configuration to test on Go 1.9 and 1.10, dropping
1.8.

Update our Travis configuration to test on Go 1.9 and 1.10, dropping
1.8.
@codecov
Copy link

codecov bot commented Apr 13, 2018

Codecov Report

Merging #577 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #577      +/-   ##
==========================================
- Coverage   97.49%   97.47%   -0.03%     
==========================================
  Files          40       39       -1     
  Lines        2035     2017      -18     
==========================================
- Hits         1984     1966      -18     
  Misses         43       43              
  Partials        8        8
Impacted Files Coverage Δ
field.go 100% <100%> (ø) ⬆️
sugar.go 100% <100%> (ø) ⬆️
array.go 100% <100%> (ø) ⬆️
config.go 97.91% <100%> (ø) ⬆️
global.go 97.14% <100%> (ø) ⬆️
error.go 100% <100%> (ø) ⬆️
options.go 100% <100%> (ø) ⬆️
logger.go 94.49% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 923fd9e...3b4fd33. Read the comment docs.

Akshay Shah added 3 commits April 13, 2018 14:44
Drop support for Go 1.8. Since all supported versions of Go now have
type aliases, we can drop some duplicated code.
The `Field` union struct is defined in `zapcore`, but most of its
constructors are in the top-level `zap` package. This makes the zap
GoDoc really unfriendly, since the field constructors are mixed in with
other top-level functions instead of being grouped together under the
field type.

This commit adds a `zap.Field` type which is just an alias for
`zapcore.Field`. It then changes all the top-level zap code to use the
alias. For validation, this commit leaves all test code unchanged.
Update zap's tests to use the new `zap.Field` alias. Keeping this change
in a separate commit lets us verify that changing to an alias is
backward-compatible for callers.
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.

3 participants