Skip to content

Commit

Permalink
Merge pull request #19 from itsksaurabh/go/doc
Browse files Browse the repository at this point in the history
add doc.go
  • Loading branch information
itsksaurabh authored Mar 14, 2020
2 parents 56fce2d + 3af165c commit f830a66
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Package wazirx provides wazirx.com's Public Rest API client.
// You can read the API server documentation at https://github.com/WazirX/wazirx-api
package wazirx

import (
Expand Down
34 changes: 34 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
Package wazirx provides a client for using the Wazirx's Public Rest API.
You can read the API server documentation at https://github.com/WazirX/wazirx-api
Usage:
create a new instance of Client, then use the various methods on the client to access different parts of the API.
For demonstration:
package main
import (
"context"
"fmt"
"log"
"github.com/itsksaurabh/go-wazirx"
)
func main() {
client := wazirx.Client{}
ctx := context.Background()
data, err := client.MarketStatus(ctx)
if err != nil {
log.Fatal("request failed:", err)
}
fmt.Println(data)
}
Notes:
* Using the [https://godoc.org/context](https://godoc.org/context) package for passing context.
* Look at tests(*_test.go) files for more sample usage.
*/
package wazirx

0 comments on commit f830a66

Please sign in to comment.