diff --git a/main.go b/main.go index 0320b61..52b99bb 100644 --- a/main.go +++ b/main.go @@ -3,12 +3,12 @@ package main import ( "github.com/davecgh/go-spew/spew" log "github.com/sirupsen/logrus" - //"fmt" ) const steemAPIURL = "https://api.steemit.com" func main() { + s := NewSteemAPI(steemAPIURL) r, err := s.GetOpsInBlock(20000000) @@ -17,6 +17,5 @@ func main() { log.Fatal(err) } - //fmt.Println(r) spew.Dump(r) } diff --git a/steemapi.go b/steemapi.go index 67fa992..571651d 100644 --- a/steemapi.go +++ b/steemapi.go @@ -1,13 +1,10 @@ package main import ( - log "github.com/sirupsen/logrus" - //"fmt" "encoding/json" + log "github.com/sirupsen/logrus" ) -//import "github.com/davecgh/go-spew/spew" - type SteemAPI struct { url string rpc *JSONRPC