Add comment for exported struct and method
This commit is contained in:
parent
ec03aeb834
commit
439ea6ca75
1 changed files with 2 additions and 0 deletions
|
@ -12,10 +12,12 @@ type MarkdownOption struct {
|
|||
Wiki bool
|
||||
}
|
||||
|
||||
// ServerVersion wraps the version of the server
|
||||
type ServerVersion struct {
|
||||
Version string
|
||||
}
|
||||
|
||||
// ServerVersion returns the version of the server
|
||||
func (c *Client) ServerVersion() (string, error) {
|
||||
v := ServerVersion{}
|
||||
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
|
||||
|
|
Loading…
Reference in a new issue