Skip to content

Commit 78e19ca

Browse files
docs: cleanup helloworld example
1 parent e2828b4 commit 78e19ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ log.Fatal(s.ListenAndServe())
4747
The [examples](examples/) directory contains complete example code.
4848

4949
To run the simple [helloworld](examples/helloworld/main.go) example:
50-
```bash
50+
```shell
5151
# Run __without__ sigsci enabled
52-
go run examples/helloworld/main.go localhost:8000
52+
go run ./examples/helloworld localhost:8000
5353
# Run with sigsci-agent listening via a UNIX Domain socket file
54-
go run examples/helloworld/main.go localhost:8000 /var/run/sigsci.sock
54+
go run ./examples/helloworld localhost:8000 /var/run/sigsci.sock
5555
# Run with sigsci-agent listening via a TCP address:port
56-
go run examples/helloworld/main.go localhost:8000 localhost:9999
56+
go run ./examples/helloworld localhost:8000 localhost:9999
5757
```
5858

5959
This will run a HTTP listener on `localhost:8000`, which will send any

examples/helloworld/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
listenerAddress = "localhost:8000"
2121
}
2222

23-
// Process sigsci-agent rpc-address if passed
23+
// Process sigsci-agent rpc-address from the optional second arg
2424
sigsciAgentNetwork := "unix"
2525
sigsciAgentAddress := ""
2626
if len(os.Args) > 2 {
@@ -56,7 +56,7 @@ func main() {
5656
log.Fatal(err)
5757
}
5858

59-
log.Printf("Using sigsci-agent address (pass address as program argument to change): %s:%s", sigsciAgentNetwork, sigsciAgentAddress)
59+
log.Printf("Signal Sciences agent RPC address: %s:%s", sigsciAgentNetwork, sigsciAgentAddress)
6060

6161
// Use the wrapped sigsci handler
6262
handler = wrapped

0 commit comments

Comments
 (0)