Skip to content

Commit d066421

Browse files
author
nativebpm-bot
committed
sync: update from connectors monorepo
1 parent c279b1a commit d066421

18 files changed

Lines changed: 57 additions & 53 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ go get github.com/nativebpm/gotenberg
1212
- **LibreOffice**: Convert Office documents (Word, Excel, PowerPoint) to PDF
1313
- **PDF Engines**: Merge, split, and manipulate PDFs
1414
- **Webhook support**: Async conversions with callback URLs
15-
- **Stream-first**: Built on `streamhttp` for efficient multipart uploads
15+
- **Stream-first**: Built on `httpstream` for efficient multipart uploads
1616

1717
## Conversion Engines
1818

examples/cmd/chromium/converturl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
func main() {
15-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
15+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1616
if err != nil {
1717
log.Fatal(err)
1818
}

examples/cmd/chromium/helloworld/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
func main() {
15-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
15+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1616
if err != nil {
1717
log.Fatal(err)
1818
}

examples/cmd/chromium/markdown/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func main() {
17-
httpClient := http.Client{
17+
httpClient := &http.Client{
1818
Timeout: 30 * time.Second,
1919
}
2020

examples/cmd/chromium/timeout/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func main() {
1818
time.Sleep(100 * time.Millisecond)
1919

2020
// Create client pointing to real Gotenberg server
21-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
21+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
2222
if err != nil {
2323
log.Fatal(err)
2424
}

examples/cmd/chromium/trace/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
func main() {
15-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
15+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1616
if err != nil {
1717
log.Fatal(err)
1818
}

examples/cmd/chromium/webhook/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func main() {
4848

4949
gotenbergURL := `http://localhost:3000`
5050

51-
httpClient := http.Client{
51+
httpClient := &http.Client{
5252
Timeout: 90 * time.Second,
5353
}
5454

examples/cmd/health/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func main() {
13-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
13+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1414
if err != nil {
1515
log.Fatal(err)
1616
}

examples/cmd/libreoffice/convert/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func main() {
1515
// Create a Gotenberg client
16-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
16+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1717
if err != nil {
1818
log.Fatal(err)
1919
}

examples/cmd/pdfengines/merge/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func main() {
1515
// Create a Gotenberg client
16-
client, err := gotenberg.NewClient(http.Client{}, "http://localhost:3000")
16+
client, err := gotenberg.NewClient(&http.Client{}, "http://localhost:3000")
1717
if err != nil {
1818
log.Fatal(err)
1919
}

0 commit comments

Comments
 (0)