Skip to content

Commit d48ad24

Browse files
committed
Add welcome message to point users at Go modules
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
1 parent 973f944 commit d48ad24

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
language: golang-http
22
fprocess: ./handler
3+
welcome_message: |
4+
You have created a new function which uses Golang 1.13.
5+
6+
To include third-party dependencies, use Go modules and use
7+
"--build-arg GO111MODULE=on" with faas-cli build or configure this
8+
via your stack.yml file.
9+
10+
See more: https://docs.openfaas.com/cli/templates/
11+
For detailed examples:
12+
https://github.com/openfaas-incubator/golang-http-template

template/golang-http/template.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
language: golang-http
22
fprocess: ./handler
3+
welcome_message: |
4+
You have created a new function which uses Golang 1.13.
5+
6+
To include third-party dependencies, use Go modules and use
7+
"--build-arg GO111MODULE=on" with faas-cli build or configure this
8+
via your stack.yml file.
9+
10+
See more: https://docs.openfaas.com/cli/templates/
11+
For detailed examples:
12+
https://github.com/openfaas-incubator/golang-http-template
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
language: golang-middleware-armhf
22
fprocess: ./handler
3+
welcome_message: |
4+
You have created a new function which uses Golang 1.13.
5+
6+
To include third-party dependencies, use Go modules and use
7+
"--build-arg GO111MODULE=on" with faas-cli build or configure this
8+
via your stack.yml file.
9+
10+
See more: https://docs.openfaas.com/cli/templates/
11+
For detailed examples:
12+
https://github.com/openfaas-incubator/golang-http-template
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
language: golang-middleware
22
fprocess: ./handler
3+
welcome_message: |
4+
You have created a new function which uses Golang 1.13.
5+
6+
To include third-party dependencies, use Go modules and use
7+
"--build-arg GO111MODULE=on" with faas-cli build or configure this
8+
via your stack.yml file.
9+
10+
See more: https://docs.openfaas.com/cli/templates/
11+
For detailed examples:
12+
https://github.com/openfaas-incubator/golang-http-template

0 commit comments

Comments
 (0)