Skip to content
This repository was archived by the owner on Apr 14, 2024. It is now read-only.

Commit e1bf4ab

Browse files
author
Julien Neuhart
committed
fixing issues
1 parent f68e1c1 commit e1bf4ab

7 files changed

+13
-13
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GOLANG_VERSION=1.12
2-
GOTENBERG_VERSION=snapshot
2+
GOTENBERG_VERSION=5.0.0
33
VERSION=snapshot
44

55
# gofmt and goimports all go files.

chrome.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ func newChromeRequest() *chromeRequest {
5555
return &chromeRequest{"", "", newRequest()}
5656
}
5757

58-
func (req *chromeRequest) formFiles() map[string]string {
59-
files := make(map[string]string)
60-
files["header.html"] = req.headerFilePath
61-
files["footer.html"] = req.footerFilePath
62-
return files
63-
}
64-
6558
// WaitDelay sets waitDelay form field.
6659
func (req *chromeRequest) WaitDelay(delay float64) {
6760
req.values[waitDelay] = strconv.FormatFloat(delay, 'f', 2, 64)
@@ -104,3 +97,10 @@ func (req *chromeRequest) Margins(margins [4]float64) {
10497
func (req *chromeRequest) Landscape(isLandscape bool) {
10598
req.values[landscapeChrome] = strconv.FormatBool(isLandscape)
10699
}
100+
101+
func (req *chromeRequest) formFiles() map[string]string {
102+
files := make(map[string]string)
103+
files["header.html"] = req.headerFilePath
104+
files["footer.html"] = req.footerFilePath
105+
return files
106+
}

html_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/thecodingmachine/gotenberg-go-client/v4/test"
10+
"github.com/thecodingmachine/gotenberg-go-client/v5/test"
1111
)
1212

1313
func TestHTML(t *testing.T) {

markdown_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/thecodingmachine/gotenberg-go-client/v4/test"
10+
"github.com/thecodingmachine/gotenberg-go-client/v5/test"
1111
)
1212

1313
func TestMarkdown(t *testing.T) {

merge_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/thecodingmachine/gotenberg-go-client/v4/test"
10+
"github.com/thecodingmachine/gotenberg-go-client/v5/test"
1111
)
1212

1313
func TestMerge(t *testing.T) {

office_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/thecodingmachine/gotenberg-go-client/v4/test"
10+
"github.com/thecodingmachine/gotenberg-go-client/v5/test"
1111
)
1212

1313
func TestOffice(t *testing.T) {

url_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/thecodingmachine/gotenberg-go-client/v4/test"
10+
"github.com/thecodingmachine/gotenberg-go-client/v5/test"
1111
)
1212

1313
func TestURL(t *testing.T) {

0 commit comments

Comments
 (0)