Skip to content

Commit

Permalink
Merge pull request #3 from aliyun/update_readme
Browse files Browse the repository at this point in the history
update README.md
  • Loading branch information
fanzhe328 authored Oct 18, 2021
2 parents c7dff9b + 42d764c commit 3af10e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ package main
import (
"fmt"
"context"
"github.com/aliyun/fc-runtime-go-sdk/fc"
)
Expand Down
3 changes: 2 additions & 1 deletion examples/event-string.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"fmt"

"github.com/aliyun/fc-runtime-go-sdk/fc"
Expand All @@ -11,7 +12,7 @@ func main() {
}

// event: "hello world"
func HandleRequest(event string) (string, error) {
func HandleRequest(ctx context.Context, event string) (string, error) {
fmt.Printf("event: %v\n", event)
fmt.Println("hello world! 你好,世界!")
return "hello world! 你好,世界!", nil
Expand Down

0 comments on commit 3af10e4

Please sign in to comment.