From 66feb7acf4f5c3c413522cb4677e7484fd6d8a7f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 19 Aug 2015 20:08:46 +0800 Subject: [PATCH] fix json tag --- repo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repo.go b/repo.go index 666a6fc..f17e58d 100644 --- a/repo.go +++ b/repo.go @@ -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.