-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for marshaling zng.Value fields (#2693)
This commit adds support for marshaling and unmarshaling zng Values that are embedded in Go structs. This allows us to encode arbitrary zng.Values as part of native Go data structures, e.g., to encode the upper/lower range boundary as zng.Values in the metadata struct of an arbitrary Zed lake data object. While here, we also improved the error message when trying to decode a non-record Zed value into a Go struct.
- Loading branch information
Showing
3 changed files
with
90 additions
and
5 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