mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-04 14:46:40 -05:00
3c66a7af24
update sdk to v0.0.0-20200103062250-c7686bd633c6 Co-authored-by: 6543 <6543@obermui.de> Reviewed-by: techknowlogick <techknowlogick@gitea.io> Reviewed-by: sapk <sapk@noreply.gitea.io> Reviewed-by: mrsdizzie <info@mrsdizzie.com>
14 lines
410 B
Go
14 lines
410 B
Go
// 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 gitea
|
|
|
|
// ServerVersion returns the version of the server
|
|
func (c *Client) ServerVersion() (string, error) {
|
|
var v = struct {
|
|
Version string `json:"version"`
|
|
}{}
|
|
return v.Version, c.getParsedResponse("GET", "/version", nil, nil, &v)
|
|
}
|