Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 439ea6c

Browse files
committed
Add comment for exported struct and method
1 parent ec03aeb commit 439ea6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitea/miscellaneous.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ type MarkdownOption struct {
1212
Uncyclo bool
1313
}
1414

15+
// ServerVersion wraps the version of the server
1516
type ServerVersion struct {
1617
Version string
1718
}
1819

20+
// ServerVersion returns the version of the server
1921
func (c *Client) ServerVersion() (string, error) {
2022
v := ServerVersion{}
2123
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)

0 commit comments

Comments
 (0)