fix json tag
This commit is contained in:
parent
9ea35aaa66
commit
66feb7acf4
1 changed files with 4 additions and 4 deletions
8
repo.go
8
repo.go
|
@ -41,10 +41,10 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
|
||||||
type CreateRepoOption struct {
|
type CreateRepoOption struct {
|
||||||
Name string `json:"name" binding:"Required"`
|
Name string `json:"name" binding:"Required"`
|
||||||
Description string `json:"description" binding:"MaxSize(255)"`
|
Description string `json:"description" binding:"MaxSize(255)"`
|
||||||
Private bool `form:"private"`
|
Private bool `json:"private"`
|
||||||
AutoInit bool `form:"auto_init"`
|
AutoInit bool `json:"auto_init"`
|
||||||
Gitignore string `form:"gitignore"`
|
Gitignore string `json:"gitignore"`
|
||||||
License string `form:"license"`
|
License string `json:"license"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CreateRepo creates a repository for authenticated user.
|
// CreateRepo creates a repository for authenticated user.
|
||||||
|
|
Loading…
Reference in a new issue