Skip to content

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

Merged
dnwe merged 1 commit intoIBM:mainfrom
vincentbernat:feature/compression-codec-unmarshal
Mar 28, 2022
Merged

feat(message): add UnmarshalText method to CompressionCodec#2172
dnwe merged 1 commit intoIBM:mainfrom
vincentbernat:feature/compression-codec-unmarshal

Conversation

@vincentbernat
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

dnwe commented Mar 7, 2022

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

@vincentbernat
Copy link
Copy Markdown
Contributor Author

Done. Unsure how to rerun the CLA check.

@ghost ghost removed the cla-needed label Mar 9, 2022
@dnwe
Copy link
Copy Markdown
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
Copy Markdown
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