Skip to content

Commit f75487b

Browse files
authored
Update stringsvc.md: change go get to go install & fix example path (#39)
1 parent 813445a commit f75487b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_src/examples/stringsvc.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func encodeResponse(_ context.Context, w http.ResponseWriter, response interface
182182
The complete service so far is [stringsvc1](https://github.com/go-kit/examples/tree/master/stringsvc1).
183183

184184
```
185-
$ go get github.com/go-kit/kit/examples/stringsvc1
185+
$ go install github.com/go-kit/examples/stringsvc1@latest
186186
$ stringsvc1
187187
```
188188

@@ -478,7 +478,7 @@ func main() {
478478
The complete service so far is [stringsvc2](https://github.com/go-kit/examples/tree/master/stringsvc2).
479479

480480
```
481-
$ go get github.com/go-kit/kit/examples/stringsvc2
481+
$ go install github.com/go-kit/examples/stringsvc2@latest
482482
$ stringsvc2
483483
msg=HTTP addr=:8080
484484
```
@@ -664,7 +664,7 @@ func proxyingMiddleware(instances string, logger log.Logger) ServiceMiddleware {
664664
The complete service so far is [stringsvc3](https://github.com/go-kit/examples/tree/master/stringsvc3).
665665

666666
```
667-
$ go get github.com/go-kit/kit/examples/stringsvc3
667+
$ go install github.com/go-kit/examples/stringsvc3@latest
668668
$ stringsvc3 -listen=:8001 &
669669
listen=:8001 caller=proxying.go:25 proxy_to=none
670670
listen=:8001 caller=main.go:72 msg=HTTP addr=:8001

0 commit comments

Comments
 (0)