diff --git a/doc_source/go-programming-model-handler-types.md b/doc_source/go-programming-model-handler-types.md index 49fa4443..c71a9409 100644 --- a/doc_source/go-programming-model-handler-types.md +++ b/doc_source/go-programming-model-handler-types.md @@ -40,11 +40,11 @@ Note the following: + **ctx context\.Context**: Provides runtime information for your Lambda function invocation\. `ctx` is the variable you declare to leverage the information available via the [The Context Object \(Go\) ](go-programming-model-context.md)\. - + **name string**: An input type with a variable name of `name` whose value will be returned in the `return` statement\. + + **name MyEvent**: An input type with a variable name of `name` whose value will be returned in the `return` statement\. - + **string error**: Returns standard [error](https://golang.org/pkg/builtin/#error) information\. For more information on custom error handling, see [Function Errors \(Go\) ](go-programming-model-errors.md)\. + + **string, error**: Returns two values: string for success and standard [error](https://golang.org/pkg/builtin/#error) information\. For more information on custom error handling, see [Function Errors \(Go\) ](go-programming-model-errors.md)\. - + **return fmt\.Sprintf\("Hello %s\!", name\), nil**: Simply returns a formatted "Hello" greeting with the name you supplied in the handler signature\. `nil` indicates there were no errors and the function executed successfully\.**func main\(\)**: The entry point that executes your Lambda function code\. This is required\. + + **return fmt\.Sprintf\("Hello %s\!", name\), nil**: Simply returns a formatted "Hello" greeting with the name you supplied in the input event\. `nil` indicates there were no errors and the function executed successfully\.**func main\(\)**: The entry point that executes your Lambda function code\. This is required\. By adding `lambda.Start(HandleRequest)` between `func main(){}` code brackets, your Lambda function will be executed\. @@ -169,4 +169,4 @@ func main() { ## Next Step -[The Context Object \(Go\) ](go-programming-model-context.md) \ No newline at end of file +[The Context Object \(Go\) ](go-programming-model-context.md)