YunxiangHuang / restc

golang http client for fetch restful json data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

restc - simple golang http client to fetch json data

How to use?

example

go get github.com/thbourlove/restc
package main

import (
	"log"

	"github.com/thbourlove/restc"
)

func main() {
	var usernames []string
	restc.NewClient().GetJsonDataWithPath("https://api.github.com/users", &usernames, "$[*].login")
	log.Println(usernames)
}

About

golang http client for fetch restful json data


Languages

Language:Go 100.0%