You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/09 18:08:08 UTC

[GitHub] csantanapr commented on issue #42: Change function Main signature to match OpenWhisk base Conformance JSON IN<->OUT

csantanapr commented on issue #42: Change function Main signature to match OpenWhisk base Conformance JSON IN<->OUT
URL: https://github.com/apache/incubator-openwhisk-runtime-go/issues/42#issuecomment-395988459
 
 
   As secondary signature can be added to have a variation that return 2 results in output to be more golang friendly
   ```
   func Main(params map[string]interface{}) (map[string]interface{}, error)
   ```
   So proposal would be to the following signatures
   ```
   func Main(params map[string]interface{}) map[string]interface{}
   func Main(params map[string]interface{}) (map[string]interface{}, error)
   ```
   As we get this out in to the main default deployment as a kind `--kind golang:1.10`
   We could get feedback that other signatures to be added that include some sort of streams using golang channels.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services