Skip to content

Commit

Permalink
Merge pull request #88 from harness/MAINT-more-readme-standards
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
conormurray95 committed Jun 14, 2022
2 parents 146a216 + cffb8d8 commit dc7a058
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ Install the golang SDK using go
go get github.com/harness/ff-golang-server-sdk
```

### A Simple Example
Here is a complete example that will connect to the feature flag service and report the flag value every 10 seconds until the connection is closed.
Any time a flag is toggled from the feature flag service you will receive the updated value.
### Code Sample
The following is a complete code example that you can use to test the `harnessappdemodarkmode` Flag you created on the Harness Platform. When you run the code it will:
- Connect to the FF service.
- Report the value of the Flag every 10 seconds until the connection is closed. Every time the harnessappdemodarkmode Flag is toggled on or off on the Harness Platform, the updated value is reported.
- Close the SDK.



```go
Expand Down Expand Up @@ -102,7 +105,7 @@ export FF_API_KEY=<your key here>
go run examples/getting_started.go
```

### Running with docker
### Running the example with Docker
If you dont have the right version of golang installed locally, or don't want to install the dependencies you can
use docker to quick get started

Expand Down

0 comments on commit dc7a058

Please sign in to comment.