diff --git a/README.md b/README.md index c8d9643..22b2939 100644 --- a/README.md +++ b/README.md @@ -47,13 +47,13 @@ log.Fatal(s.ListenAndServe()) The [examples](examples/) directory contains complete example code. To run the simple [helloworld](examples/helloworld/main.go) example: -```bash +```shell # Run __without__ sigsci enabled -go run examples/helloworld/main.go localhost:8000 +go run ./examples/helloworld localhost:8000 # Run with sigsci-agent listening via a UNIX Domain socket file -go run examples/helloworld/main.go localhost:8000 /var/run/sigsci.sock +go run ./examples/helloworld localhost:8000 /var/run/sigsci.sock # Run with sigsci-agent listening via a TCP address:port -go run examples/helloworld/main.go localhost:8000 localhost:9999 +go run ./examples/helloworld localhost:8000 localhost:9999 ``` This will run a HTTP listener on `localhost:8000`, which will send any diff --git a/examples/helloworld/main.go b/examples/helloworld/main.go index 79ac74d..9e60665 100644 --- a/examples/helloworld/main.go +++ b/examples/helloworld/main.go @@ -20,7 +20,7 @@ func main() { listenerAddress = "localhost:8000" } - // Process sigsci-agent rpc-address if passed + // Process sigsci-agent rpc-address from the optional second arg sigsciAgentNetwork := "unix" sigsciAgentAddress := "" if len(os.Args) > 2 { @@ -56,7 +56,7 @@ func main() { log.Fatal(err) } - log.Printf("Using sigsci-agent address (pass address as program argument to change): %s:%s", sigsciAgentNetwork, sigsciAgentAddress) + log.Printf("Signal Sciences agent RPC address: %s:%s", sigsciAgentNetwork, sigsciAgentAddress) // Use the wrapped sigsci handler handler = wrapped