forgejo-sdk/gitea/miscellaneous.go
2017-03-03 22:45:18 +08:00

22 lines
507 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
// MarkdownOption markdown options
type MarkdownOption struct {
Text string
Mode string
Context string
Wiki bool
}
type ServerVersion struct {
Version string
}
func (c *Client) ServerVersion() (string, error) {
v := ServerVersion{}
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
}