From 35fbb84527576bf9ecfb1d99e552ce977ddde46c Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Thu, 18 Aug 2016 03:54:36 +0700 Subject: [PATCH] Update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9d4d28..13d1375 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ go get -u github.com/Gnouc/gogi #Usage ## As library -```sh +```go import ( "fmt" "io/ioutil" @@ -26,7 +26,7 @@ import ( ) func main() { - gogiClient := gogi.NewHTTPClient(nil) + gogiClient, _ := gogi.NewHTTPClient() resp, _ := gogiClient.List() body, err := ioutil.ReadAll(resp.Body) if body != nil {