Skip to content

Commit fe82ccb

Browse files
committed
Run go fmt ./...
1 parent 95e6a74 commit fe82ccb

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func (p PaperListParams) Build() string {
194194
func (c *Client) PaperList(params PaperListParams) (*models.PaperListResult, error) {
195195
papersListURL := c.BaseURL + "/papers?" + params.Build()
196196

197-
request, err := http.NewRequest(http.MethodGet, papersListURL /*body=*/, nil)
197+
request, err := http.NewRequest(http.MethodGet, papersListURL, nil /*body*/)
198198
if err != nil {
199199
return nil, err
200200
}

models/paper_list_result.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ type PaperListResult struct {
99
}
1010

1111
type PaperListResultItem struct {
12-
ID string `json:"id"`
13-
ArxivID *string `json:"arxiv_id"`
14-
NipsID *string `json:"nips_id"`
15-
URLAbs string `json:"url_abs"`
16-
URLPDF string `json:"url_pdf"`
17-
Title string `json:"title"`
18-
Abstract string `json:"abstract"`
19-
Authors []string `json:"authors"`
20-
Published YyyyMmDdDashed `json:"published"`
21-
Conference *string `json:"conference"`
22-
ConferenceURLAbs *string `json:"conference_url_abs"`
23-
ConferenceURLPDF *string `json:"conference_url_pdf"`
24-
Proceeding *string `json:"proceeding"`
25-
}
12+
ID string `json:"id"`
13+
ArxivID *string `json:"arxiv_id"`
14+
NipsID *string `json:"nips_id"`
15+
URLAbs string `json:"url_abs"`
16+
URLPDF string `json:"url_pdf"`
17+
Title string `json:"title"`
18+
Abstract string `json:"abstract"`
19+
Authors []string `json:"authors"`
20+
Published YyyyMmDdDashed `json:"published"`
21+
Conference *string `json:"conference"`
22+
ConferenceURLAbs *string `json:"conference_url_abs"`
23+
ConferenceURLPDF *string `json:"conference_url_pdf"`
24+
Proceeding *string `json:"proceeding"`
25+
}

models/yyyymmdd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ func (y *YyyyMmDdDashed) UnmarshalJSON(bytes []byte) error {
2020

2121
func (y YyyyMmDdDashed) MarshalJSON() ([]byte, error) {
2222
return json.Marshal(y)
23-
}
23+
}

models/yyyymmdd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ func TestYyyyMmDdDashed_UnmarshalJSON(t *testing.T) {
3939
}
4040
})
4141
}
42-
}
42+
}

0 commit comments

Comments
 (0)