Add comment for exported struct and method

This commit is contained in:
Mura Li 2017-03-03 22:55:07 +08:00
parent ec03aeb834
commit 439ea6ca75

View file

@ -12,10 +12,12 @@ type MarkdownOption struct {
Wiki bool Wiki bool
} }
// ServerVersion wraps the version of the server
type ServerVersion struct { type ServerVersion struct {
Version string Version string
} }
// ServerVersion returns the version of the server
func (c *Client) ServerVersion() (string, error) { func (c *Client) ServerVersion() (string, error) {
v := ServerVersion{} v := ServerVersion{}
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v) return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)