minor tag fix

This commit is contained in:
Unknwon 2015-12-04 17:10:37 -05:00
parent 4663f3ae45
commit 41ded8a3f9
3 changed files with 13 additions and 2 deletions

View file

@ -14,7 +14,7 @@ import (
) )
func Version() string { func Version() string {
return "0.1.0" return "0.3.0"
} }
// Client represents a Gogs API client. // Client represents a Gogs API client.

11
miscellaneous.go Normal file
View file

@ -0,0 +1,11 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package gogs
type MarkdownOption struct {
Text string
Mode string
Context string
}

View file

@ -29,7 +29,7 @@ func (c *Client) ListAccessTokens(user, pass string) ([]*AccessToken, error) {
} }
type CreateAccessTokenOption struct { type CreateAccessTokenOption struct {
Name string `json:"name"` Name string `json:"name" binding:"Required"`
} }
func (c *Client) CreateAccessToken(user, pass string, opt CreateAccessTokenOption) (*AccessToken, error) { func (c *Client) CreateAccessToken(user, pass string, opt CreateAccessTokenOption) (*AccessToken, error) {