dgrove-oss commented on code in PR #173:
URL:
https://github.com/apache/openwhisk-runtime-go/pull/173#discussion_r939690894
##########
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
Review Comment:
```suggestion
return result
```
--
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]