Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 66feb7a

Browse files
committed
fix json tag
1 parent 9ea35aa commit 66feb7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

repo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
4141
type CreateRepoOption struct {
4242
Name string `json:"name" binding:"Required"`
4343
Description string `json:"description" binding:"MaxSize(255)"`
44-
Private bool `form:"private"`
45-
AutoInit bool `form:"auto_init"`
46-
Gitignore string `form:"gitignore"`
47-
License string `form:"license"`
44+
Private bool `json:"private"`
45+
AutoInit bool `json:"auto_init"`
46+
Gitignore string `json:"gitignore"`
47+
License string `json:"license"`
4848
}
4949

5050
// CreateRepo creates a repository for authenticated user.

0 commit comments

Comments
 (0)