fix json tag

This commit is contained in:
Unknwon 2015-08-19 20:08:46 +08:00
parent 9ea35aaa66
commit 66feb7acf4

View file

@ -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.