Skip to content
Closed

typo #17

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc_source/go-programming-model-handler-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\.

Expand Down Expand Up @@ -169,4 +169,4 @@ func main() {

## Next Step<a name="go-programming-model-next-step-context"></a>

[The Context Object \(Go\) ](go-programming-model-context.md)
[The Context Object \(Go\) ](go-programming-model-context.md)