works
This commit is contained in:
parent
7f411231c6
commit
aba19d1e89
3
main.go
3
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)
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user