Last active
October 2, 2020 02:13
-
-
Save codegold79/7310581dfc890feb01e22d987f6b2172 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var event cloudEvent | |
| err := json.Unmarshal(req, &event) | |
| if err != nil { | |
| return cloudEvent{}, fmt.Errorf("unmarshalling json: %w", err) | |
| } | |
| return event, nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment