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

feat(message): add UnmarshalText method to CompressionCodec #2172

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

vincentbernat
Copy link
Contributor

This allows the user to include a CompressionCodec in a structure to
be unmarshaled from a configuration file using YAML/JSON/whatever.

@ghost ghost added the cla-needed label Mar 7, 2022
@dnwe
Copy link
Collaborator

dnwe commented Mar 7, 2022

@vincentbernat thanks — this change looks sound to me, please can you sign the CLA?

@vincentbernat
Copy link
Contributor Author

Done. Unsure how to rerun the CLA check.

@ghost ghost removed the cla-needed label Mar 9, 2022
@dnwe
Copy link
Collaborator

dnwe commented Mar 9, 2022

@vincentbernat thanks CLA is now passing — you have a couple of minor golangci-lint warnings that need fixing

@vincentbernat vincentbernat force-pushed the feature/compression-codec-unmarshal branch from 79a4d64 to 8f8b02d Compare March 10, 2022 16:00
This allows the user to include a CompressionCodec in a structure to
be unmarshaled from a configuration file using YAML/JSON/whatever.
@vincentbernat vincentbernat force-pushed the feature/compression-codec-unmarshal branch from 8f8b02d to 6a516b2 Compare March 10, 2022 16:01
@vincentbernat
Copy link
Contributor Author

Fixed. I have also added MarshalText(), not all encoders fallback to String() (for example, mitchellh/mapstructure does not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants