From 6b188c053a40a5f375ff690d575be3636eb85397 Mon Sep 17 00:00:00 2001 From: Chris Lee Date: Mon, 26 Mar 2018 11:04:25 -0600 Subject: [PATCH] Add golang example to installation guide (#578) Use --src instead of --code for Go example. --- .../content/installation/installation.en.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/docs-site/content/installation/installation.en.md b/Documentation/docs-site/content/installation/installation.en.md index bf55903f..bb340bb5 100644 --- a/Documentation/docs-site/content/installation/installation.en.md +++ b/Documentation/docs-site/content/installation/installation.en.md @@ -134,6 +134,19 @@ $ fission function test --name hello Hello, world! ``` +For a compiled language like Go: + +```sh +$ fission env create --name go --image fission/go-env:0.6.0 --builder fission/go-builder:0.6.0 + +$ curl -LO https://raw.githubusercontent.com/fission/fission/master/examples/go/hello.go + +$ fission function create --name gohello --env go --src hello.go --entrypoint Handler + +$ fission function test --name gohello +Hello, world! +``` + ### What's next? If something went wrong, we'd love to help -- please [drop by the