This commit is contained in:
Jeffrey Paul 2018-10-25 06:12:43 -07:00
parent 7f411231c6
commit aba19d1e89
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
2 changed files with 2 additions and 6 deletions

View File

@ -3,12 +3,12 @@ package main
import ( import (
"github.com/davecgh/go-spew/spew" "github.com/davecgh/go-spew/spew"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
//"fmt"
) )
const steemAPIURL = "https://api.steemit.com" const steemAPIURL = "https://api.steemit.com"
func main() { func main() {
s := NewSteemAPI(steemAPIURL) s := NewSteemAPI(steemAPIURL)
r, err := s.GetOpsInBlock(20000000) r, err := s.GetOpsInBlock(20000000)
@ -17,6 +17,5 @@ func main() {
log.Fatal(err) log.Fatal(err)
} }
//fmt.Println(r)
spew.Dump(r) spew.Dump(r)
} }

View File

@ -1,13 +1,10 @@
package main package main
import ( import (
log "github.com/sirupsen/logrus"
//"fmt"
"encoding/json" "encoding/json"
log "github.com/sirupsen/logrus"
) )
//import "github.com/davecgh/go-spew/spew"
type SteemAPI struct { type SteemAPI struct {
url string url string
rpc *JSONRPC rpc *JSONRPC