mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-02-09 13:36:58 +02:00
go fmt boards
This commit is contained in:
parent
81b91847b3
commit
9f8d06db41
1
board.go
1
board.go
@ -48,7 +48,6 @@ type BoardListOptions struct {
|
|||||||
MaxResults int `url:"maxResults,omitempty"`
|
MaxResults int `url:"maxResults,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get all boards form jira
|
// Get all boards form jira
|
||||||
//
|
//
|
||||||
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getAllProjects
|
// JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#api/2/project-getAllProjects
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package jira
|
package jira
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
@ -64,4 +63,3 @@ func TestBoardsGetFiltered(t *testing.T) {
|
|||||||
t.Errorf("Error given: %s", err)
|
t.Errorf("Error given: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
jira.go
3
jira.go
@ -97,7 +97,6 @@ func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Requ
|
|||||||
return req, nil
|
return req, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// addOptions adds the parameters in opt as URL query parameters to s. opt
|
// addOptions adds the parameters in opt as URL query parameters to s. opt
|
||||||
// must be a struct whose fields may contain "url" tags.
|
// must be a struct whose fields may contain "url" tags.
|
||||||
func addOptions(s string, opt interface{}) (string, error) {
|
func addOptions(s string, opt interface{}) (string, error) {
|
||||||
@ -172,8 +171,6 @@ func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) {
|
|||||||
return resp, err
|
return resp, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// CheckResponse checks the API response for errors, and returns them if present.
|
// CheckResponse checks the API response for errors, and returns them if present.
|
||||||
// A response is considered an error if it has a status code outside the 200 range.
|
// A response is considered an error if it has a status code outside the 200 range.
|
||||||
// The caller is responsible to analyze the response body.
|
// The caller is responsible to analyze the response body.
|
||||||
|
@ -8,9 +8,9 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"net/url"
|
"net/url"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
"strings"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user