]> 127.0.0.1 Git - part/.git/commitdiff
update v0.5.4
authorqydysky <qydysky@foxmail.com>
Sun, 11 Apr 2021 09:18:10 +0000 (17:18 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 11 Apr 2021 09:18:10 +0000 (17:18 +0800)
CheckFile.go
get/Get.go

index 93d06fbeb67c48cb8b17802fa17bf9e82091ef18..2203bf61d32288f317cee702401a5101feda74d7 100644 (file)
@@ -9,6 +9,8 @@ import (
     "errors"
     "os"
        "io/ioutil"
+
+       reqf "github.com/qydysky/part/reqf"
 )
 
 type checkfile struct {
@@ -137,12 +139,12 @@ func (this *checkfile) CheckList(checkFile,root,SplitString string)bool{
        if strings.Contains(checkFile,"https://") {
                Logf().I("[wait]checkFile: Getting checkfile...")
 
-               var r = Rval {
+               var r = reqf.Rval {
                        Url:checkFile,
                        Timeout:6,
             Retry:2,
                }
-               req := Req()
+               req := reqf.Req()
                if e:=req.Reqf(r);e != nil {
                        Logf().E("[err]checkFile:",checkFile,e.Error())
                        return false
index 33100e91381f762a9ddecfc91022531d4207cb15..36af3b106eb6ac02b127cf1a0a32ad371adb953a 100644 (file)
@@ -4,7 +4,7 @@ import (
        "strings"
        "errors"
        "net/http"
-       p "github.com/qydysky/part"
+       reqf "github.com/qydysky/part/reqf"
 )
 
 type get struct {
@@ -15,12 +15,12 @@ type get struct {
        Err error
 }
 
-func Get(r p.Rval) (o *get){
+func Get(r reqf.Rval) (o *get){
        o = new(get)
 
        if r.Url == "" {o.Err = errors.New("url == nil");return}
 
-       R := p.Req()
+       R := reqf.Req()
        o.Err = R.Reqf(r)
        (*o).body = R.Respon
        (*o).Response = R.Response