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

Add in-place option to shift transform #52

Merged
merged 3 commits into from Aug 25, 2017
Merged

Conversation

ryanleary
Copy link
Contributor

Adds a top-level in-place field to spec definitions that can be supported by other transforms in the future.

@@ -8,8 +8,13 @@ import (
)

// Shift moves values from one provided json path to another in raw []byte.
func Shift(spec *Config, data []byte) ([]byte, error) {
outData := []byte(`{}`)
func Shift(spec *InPlaceConfig, data []byte) ([]byte, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InPlaceConfig is not a defined struct. This should still be *Config

@ryanleary ryanleary merged commit ea00ddb into qntfy:master Aug 25, 2017
@ryanleary
Copy link
Contributor Author

ryanleary commented Aug 25, 2017 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants