chore: reorganize useAgent form field

This commit is contained in:
Julien Neuhart
2021-11-21 16:44:25 +01:00
parent 4f41a59ceb
commit 5b8391067d
2 changed files with 8 additions and 8 deletions

View File

@@ -61,10 +61,6 @@ type Chromium struct {
// Options are the available options for converting HTML document to PDF.
type Options struct {
// UserAgent overrides the default User-Agent header.
// Optional.
UserAgent string
// WaitDelay is the duration to wait when loading an HTML document before
// converting it to PDF.
// Optional.
@@ -75,6 +71,10 @@ type Options struct {
// Optional.
WaitWindowStatus string
// UserAgent overrides the default User-Agent header.
// Optional.
UserAgent string
// ExtraHTTPHeaders are the HTTP headers to send by Chromium while loading
// the HTML document.
// Optional.
@@ -147,9 +147,9 @@ type Options struct {
// DefaultOptions returns the default values for Options.
func DefaultOptions() Options {
return Options{
UserAgent: "",
WaitDelay: 0,
WaitWindowStatus: "",
UserAgent: "",
ExtraHTTPHeaders: nil,
Landscape: false,
PrintBackground: false,