dgrove-oss commented on code in PR #173:
URL: 
https://github.com/apache/openwhisk-runtime-go/pull/173#discussion_r939690944


##########
docs/ACTION.md:
##########
@@ -63,6 +63,33 @@ func Main(obj map[string]interface{}) map[string]interface{} 
{
 }
 ```
 
+For the return result, not only support `map[string]interface{}` but also 
support `[]interface{}`
+
+So a very simple `hello array` function would be:
+
+```go
+package main
+
+// Main is the function implementing the action
+func Main(event map[string]interface{}) []interface{} {
+       result := []interface{}{"a", "b"}
+       return result
+}
+```
+
+And support array result for sequence action as well, the first action's array 
result can be used as next action's input parameter.
+
+So the function can be:
+
+```go
+package main
+
+// Main is the function implementing the action
+func Main(obj []interface{}) []interface{} {
+       return obj

Review Comment:
   ```suggestion
           return obj
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to