fixing various typos in documentation

This commit is contained in:
Julien Neuhart
2018-12-12 17:44:27 +01:00
parent 6aa3c16646
commit ba7b02d8d4
4 changed files with 8 additions and 18 deletions

View File

@@ -28,14 +28,10 @@ import "github.com/thecodingmachine/gotenberg/pkg"
func main() {
c := &gotenberg.Client{Hostname: "http://localhost:3000"}
req := &gotenberg.HTMLRequest{
IndexFilePath: "index.html",
Options: &gotenberg.HTMLOptions{
WebHookURL: "http://myapp.com/webhook/",
},
}
req, _ := gotenberg.NewHTMLRequest("index.html")
req.SetWebhookURL("http://myapp.com/webhook/")
dest := "result.pdf"
resp, err := c.Post(req)
resp, _ := c.Post(req)
}
```