lbry.go/main.go

25 lines
358 B
Go
Raw Normal View History

package main
import (
2017-08-17 17:46:51 +02:00
"math/rand"
"time"
2017-09-12 18:04:45 +02:00
"github.com/lbryio/lbry.go/jsonrpc"
"github.com/davecgh/go-spew/spew"
log "github.com/sirupsen/logrus"
)
func main() {
2017-08-17 17:46:51 +02:00
rand.Seed(time.Now().UnixNano())
2017-09-12 18:04:45 +02:00
log.Println("Starting...")
2017-08-17 17:46:51 +02:00
2017-09-12 18:04:45 +02:00
conn := jsonrpc.NewClient("")
2017-09-12 22:38:18 +02:00
response, err := conn.Resolve("one")
2017-09-12 18:04:45 +02:00
if err != nil {
panic(err)
}
2017-09-12 18:04:45 +02:00
spew.Dump(response)
}