Skip to content

Commit

Permalink
chore: fix readme
Browse files Browse the repository at this point in the history
(cherry picked from commit 08e05a8)
  • Loading branch information
ldming committed Dec 27, 2024
1 parent fdb47aa commit 5bb944b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ HTTPS_PROXY=http://proxy.example.com:8080
Configure server URL and variables:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()

// Set server URL
configuration.Host = "api.example.com"
Expand All @@ -154,7 +154,7 @@ ctx := context.WithValue(
Enable debug logging:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()
configuration.Debug = true
```

Expand All @@ -163,7 +163,7 @@ configuration.Debug = true
Configure retry behavior:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()

// Configure retry settings
configuration.RetryConfiguration = common.RetryConfiguration{
Expand All @@ -181,7 +181,7 @@ configuration.RetryConfiguration = common.RetryConfiguration{
Configure HTTP client:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()

// Custom HTTP client
configuration.HTTPClient = &http.Client{
Expand All @@ -206,7 +206,7 @@ ctx := context.WithValue(
Configure custom user agent:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()
configuration.UserAgent = "MyApp/1.0.0"
```

Expand All @@ -215,7 +215,7 @@ configuration.UserAgent = "MyApp/1.0.0"
Add default headers to all requests:

```go
configuration := kbcloud.NewConfiguration()
configuration := common.NewConfiguration()
configuration.AddDefaultHeader("Custom-Header", "value")
```

Expand Down

0 comments on commit 5bb944b

Please sign in to comment.