henryken commented on a change in pull request #11564:
URL: https://github.com/apache/beam/pull/11564#discussion_r419807983



##########
File path: learning/katas/go/Core Transforms/Map/ParDo struct/pkg/task/task.go
##########
@@ -18,10 +18,7 @@ package task
 import "github.com/apache/beam/sdks/go/pkg/beam"
 
 func ApplyTransform(s beam.Scope, input beam.PCollection) beam.PCollection {
-       processFn := &multiplyByFn{
-               Factor: 5,
-       }
-       return beam.ParDo(s, processFn, input)
+       return beam.ParDo(s, &multiplyByFn{Factor: 5}, input)

Review comment:
       This looks good now! Thanks @damondouglas!




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to