Skip to content

Commit

Permalink
style: break long signature lines
Browse files Browse the repository at this point in the history
  • Loading branch information
xen0n committed Jul 6, 2023
1 parent 304a98f commit 2048bec
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ func (c *WorkwxApp) composeQyapiURLWithToken(path string, req any, withAccessTok
return url, nil
}

func executeQyapiGet[U tryIntoErr](c *WorkwxApp, path string, req urlValuer, respObj U, withAccessToken bool) error {
func executeQyapiGet[U tryIntoErr](
c *WorkwxApp,
path string,
req urlValuer,
respObj U,
withAccessToken bool,
) error {
url, err := c.composeQyapiURLWithToken(path, req, withAccessToken)
if err != nil {
return err
Expand All @@ -129,7 +135,13 @@ func executeQyapiGet[U tryIntoErr](c *WorkwxApp, path string, req urlValuer, res
return nil
}

func executeQyapiJSONPost[U tryIntoErr](c *WorkwxApp, path string, req bodyer, respObj U, withAccessToken bool) error {
func executeQyapiJSONPost[U tryIntoErr](
c *WorkwxApp,
path string,
req bodyer,
respObj U,
withAccessToken bool,
) error {
url, err := c.composeQyapiURLWithToken(path, req, withAccessToken)
if err != nil {
return err
Expand Down

0 comments on commit 2048bec

Please sign in to comment.