forked from uber-go/zap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NumbersAsStrings to EncoderConfig
This partially fixes uber-go#884. This implementation is limited to top level fields, like: Int64("int64", 123) Float64("float64", 456) Or sugared: With("int64", 123, "float64", 456) It does NOT work with reflected fields like: Reflect("array", []int{1, 2, 3}) As for reflected fields we use go's stdlib json encoder directly, which doesn't provide such feature.
- Loading branch information
Showing
3 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters