From 28f6100aaad0e7a1529f635115b7e38447a81646 Mon Sep 17 00:00:00 2001 From: Alex Lushpai Date: Mon, 19 Feb 2018 12:14:06 +0300 Subject: [PATCH] godoc ApiVersions --- v5/client.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/v5/client.go b/v5/client.go index 3c23bd4..5b2f922 100644 --- a/v5/client.go +++ b/v5/client.go @@ -144,21 +144,21 @@ func fillSite(p *url.Values, site []string) { // // Example: // -// var client = v5.New("https://demo.url", "09jIJ") +// var client = v5.New("https://demo.url", "09jIJ") // -// data, status, err := client.ApiVersions() +// data, status, err := client.ApiVersions() // -// if err.ErrorMsg != "" { -// fmt.Printf("%v", err.ErrorMsg) -// } +// if err.ErrorMsg != "" { +// fmt.Printf("%v", err.ErrorMsg) +// } // -// if status >= http.StatusBadRequest { -// fmt.Printf("%v", err.ErrorMsg) -// } +// if status >= http.StatusBadRequest { +// fmt.Printf("%v", err.ErrorMsg) +// } // -// for _, value := range data.versions { -// fmt.Printf("%v\n", value) -// } +// for _, value := range data.versions { +// fmt.Printf("%v\n", value) +// } func (c *Client) ApiVersions() (*VersionResponse, int, ErrorResponse) { var resp VersionResponse