比较两个json字符串作为json结构。
正在安装
go get github.com/iostrovok/go-jsoncompare/jsoncompare
用法:示例
package main
import (
"github.com/iostrovok/go-jsoncompare/jsoncompare"
"fmt"
"io/ioutil"
"log"
"net/http"
)
var url1 string = "http://ergast.com/api/f1/2011.json"
var url2 string = "http://ergast.com/api/f1/2012.json"
func main () {
b1 , e1 := loadUrl ( url1 )
if e1 != nil {
log . Fatalln ( e1 )
}
b
评论0
最新资源