Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlight to the readme examples #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ go get github.com/pkg/errors
## How to use

To init client you will need `private_key` and `app_id` which you can get from your Zooz account profile.
```
```go
import "github.com/gojuno/go-zooz"
...
// Init client
Expand Down Expand Up @@ -56,7 +56,7 @@ deleteCustomerErr := client.Customer().Delete(context.Background(), customer.ID)
## Custom HTTP client

By default Zooz client uses `http.DefaultClient`. You can set custom HTTP client using `zooz.OptHTTPClient` option:
```
```go
httpClient := &http.Client{
Timeout: time.Minute,
}
Expand All @@ -74,7 +74,7 @@ You can use any HTTP client, implementing `zooz.HTTPClient` interface with metho
Zooz supports test and live environment. Environment is defined by `x-payments-os-env` request header.

By default, client sends `test` value. You can redefine this value to `live` using `zooz.OptEnv(zooz.EnvLive)` option.
```
```go
client := zooz.New(
zooz.OptAppID("com.yourhost.go_client"),
zooz.OptPrivateKey("a630518c-22da-4eaa-bb39-502ad7832030"),
Expand Down