Skip to content

Commit be9d989

Browse files
committed
Remove references to deprecated go template
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent 0a2aad8 commit be9d989

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/deployment/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ You can usually do one of the following:
238238
Example:
239239

240240
```bash
241-
faas-cli new --lang go test-this
241+
faas-cli new --lang golang-middleware test-this
242242

243243
faas-cli build -f test-this.yml
244244

docs/openfaas-pro/dashboard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Example snippet from stack.yml:
6969
```yaml
7070
functions:
7171
cows:
72-
lang: go
72+
lang: golang-middleware
7373
handler: ./cows
7474
image: alexellis2/cows:0.1
7575
labels:

docs/openfaas-pro/kafka-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Create a new function:
3737

3838
```bash
3939
export OPENFAAS_PREFIX=ghcr.io/openfaas
40-
faas-cli new --lang go provision-customer
40+
faas-cli new --lang golang-middleware provision-customer
4141
```
4242

4343
Now add an annotation for the `payment.created` topic, so that the `provision-customer` function is invoked for any message received:
@@ -52,7 +52,7 @@ functions:
5252
provision-customer:
5353
annotations:
5454
topic: payment.created
55-
lang: go
55+
lang: golang-middleware
5656
handler: ./provision-customer
5757
image: ghcr.io/openfaas:provision-customer
5858
```

docs/openfaas-pro/scale-to-zero.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Create a new function using the `go` template:
5555

5656
```bash
5757
export OPENFAAS_PREFIX=ttl.sh/daily-job:1h
58-
faas-cli new --lang go daily-job
58+
faas-cli new --lang golang-middleware daily-job
5959
```
6060

6161
Now add the labels from above, we'll use a 15 minute timeout.
@@ -70,7 +70,7 @@ provider:
7070

7171
functions:
7272
daily-job:
73-
lang: go
73+
lang: golang-middleware
7474
handler: ./daily-job
7575
image: ttl.sh/daily-job:1h
7676
labels:

docs/reference/private-registries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ The secret *must* be created in the `openfaas-fn` namespace or the equivalent if
115115
Create a sample function with a `--prefix` variable:
116116

117117
```sh
118-
faas-cli new --lang go private-fn --prefix=registry:port/repo
118+
faas-cli new --lang golang-middleware private-fn --prefix=registry:port/repo
119119
```
120120

121121
Update the `stack.yml` file and add a reference to the new secret:

docs/reference/yaml.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The YAML file can hold one to many functions separated by separate entries.
2121
Example:
2222

2323
```bash
24-
$ faas-cli new --lang go fn1
25-
$ faas-cli new --lang go fn2 --append=fn1.yml
24+
$ faas-cli new --lang golang-middleware fn1
25+
$ faas-cli new --lang golang-middleware fn2 --append=fn1.yml
2626
```
2727

2828
Produces:
@@ -34,11 +34,11 @@ provider:
3434

3535
functions:
3636
fn1:
37-
lang: go
37+
lang: golang-middleware
3838
handler: ./fn1
3939
image: fn1:latest
4040
fn2:
41-
lang: go
41+
lang: golang-middleware
4242
handler: ./fn2
4343
image: fn2:latest
4444
```
@@ -144,7 +144,7 @@ An example of a build argument may be for enabling Go modules, or a HTTP_PROXY a
144144
functions:
145145
with_go_modules:
146146
handler: ./with_go_modules
147-
lang: go
147+
lang: golang-middleware
148148
build_args:
149149
HTTP_PROXY: http://squid.corp.ad.example.com
150150
GO111MODULE: on
@@ -235,7 +235,7 @@ provider:
235235
gateway: http://127.0.0.1:8080
236236
functions:
237237
low:
238-
lang: go
238+
lang: golang-middleware
239239
handler: ./low
240240
image: alexellis2/low:latest
241241
constraints:

0 commit comments

Comments
 (0)