commit b74ab3b391ccb35e2941c6d15039804dfbcd55f4
parent dad28b1a8f4f17dd47854db715221aa985024cef
Author: Oliver Lowe <o@olowe.co>
Date: Thu, 30 Dec 2021 18:51:01 +1100
go fmt
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/http.go b/http.go
@@ -43,7 +43,6 @@ func (c *Client) post(path string, body io.Reader) (*http.Response, error) {
return c.do(req)
}
-
func (c *Client) put(path string, body io.Reader) (*http.Response, error) {
req, err := newRequest(http.MethodPut, c.host, path, body)
if err != nil {
diff --git a/icinga.go b/icinga.go
@@ -6,9 +6,9 @@ import (
)
type Client struct {
- host string
- username string
- password string
+ host string
+ username string
+ password string
*http.Client
}