fix json tag

This commit is contained in:
Unknwon 2015-08-19 20:08:46 +08:00
parent 9ea35aaa66
commit 66feb7acf4
1 changed files with 4 additions and 4 deletions

View File

@ -41,10 +41,10 @@ func (c *Client) ListMyRepos() ([]*Repository, error) {
type CreateRepoOption struct {
Name string `json:"name" binding:"Required"`
Description string `json:"description" binding:"MaxSize(255)"`
Private bool `form:"private"`
AutoInit bool `form:"auto_init"`
Gitignore string `form:"gitignore"`
License string `form:"license"`
Private bool `json:"private"`
AutoInit bool `json:"auto_init"`
Gitignore string `json:"gitignore"`
License string `json:"license"`
}
// CreateRepo creates a repository for authenticated user.