-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
codec: support time.Time natively in all formats, and remove Builtin …
…mode. All codec's now have native support for time.Time, either as a builtin type, an extension or a convention (e.g. json using RFC3339). - json: RFC3339 - cbor: timestamp extension - msgpack: timestamp extension - binc: built-in time type - simple: built-in time type Consequently, it is ok to remove the "IsBuiltin" functionality and assume all codecs support time.Time. We also removed builtin functionality from taking effect. All formats say that they do not support builtins. However, to ensure that consuming libraries that have codecgen'ed files do not need to re-generate, we allowed the functionality as stubs so the files compile but the code path is never run.
- Loading branch information
Showing
12 changed files
with
406 additions
and
74 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
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
Oops, something went wrong.