From bcca1e872ebc4952f69666065dd898a05fcbaf24 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Fri, 22 Jun 2018 23:47:25 -0600 Subject: [PATCH] Fix example usage since change to using pointer receivers instead of passing ConnectwiseSite pointer to each function --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1a2278..c60a529 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ const ( func main() { cw := connectwise.NewSite(cwSite, cwAPIKey, cwAPIKeyPrivate, cwCompany) - companyDataByID := connectwise.GetCompanyByID(cw, 2) //Retrieves company ID 2 from CW and returns type pointer to a slice of Company's - fmt.Println(*companyDataByID) + companyDataByID := cw.GetCompanyByID(2) //Retrieves company ID 2 from CW and returns type pointer a Company + fmt.Println(*companyDataByID.Name) } ```