master
李光春 2 years ago
parent 6aa4387eb2
commit 7fb7cc15f9

@ -6,9 +6,9 @@
[comment]: <> (go) [comment]: <> (go)
[![go](https://github.com/dtapps/go-library/actions/workflows/go.yml/badge.svg)](https://github.com/dtapps/go-library/actions/workflows/go.yml) [![go](https://github.com/dtapps/go-library/actions/workflows/go.yml/badge.svg)](https://github.com/dtapps/go-library/actions/workflows/go.yml)
[![godoc](https://pkg.go.dev/badge/gopkg.in/dtapps/go-library.v2?status.svg)](https://pkg.go.dev/gopkg.in/dtapps/go-library.v2) [![godoc](https://pkg.go.dev/badge/gopkg.in/dtapps/go-library.v3?status.svg)](https://pkg.go.dev/gopkg.in/dtapps/go-library.v3)
[![goproxy.cn](https://goproxy.cn/stats/gopkg.in/dtapps/go-library.v2/badges/download-count.svg)](https://goproxy.cn/stats/gopkg.in/dtapps/go-library.v2) [![goproxy.cn](https://goproxy.cn/stats/gopkg.in/dtapps/go-library.v3/badges/download-count.svg)](https://goproxy.cn/stats/gopkg.in/dtapps/go-library.v3)
[![goreportcard.com](https://goreportcard.com/badge/gopkg.in/dtapps/go-library.v2)](https://goreportcard.com/report/gopkg.in/dtapps/go-library.v2) [![goreportcard.com](https://goreportcard.com/badge/gopkg.in/dtapps/go-library.v3)](https://goreportcard.com/report/gopkg.in/dtapps/go-library.v3)
[![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgo-library) [![deps.dev](https://img.shields.io/badge/deps-go-red.svg)](https://deps.dev/go/github.com%2Fdtapps%2Fgo-library)
[![Coverage Status](https://coveralls.io/repos/github/dtapps/go-library/badge.svg?branch=master)](https://coveralls.io/github/dtapps/go-library?branch=master) [![Coverage Status](https://coveralls.io/repos/github/dtapps/go-library/badge.svg?branch=master)](https://coveralls.io/github/dtapps/go-library?branch=master)
[![Sourcegraph](https://sourcegraph.com/github.com/dtapps/go-library/-/badge.svg)](https://sourcegraph.com/github.com/dtapps/go-library?badge) [![Sourcegraph](https://sourcegraph.com/github.com/dtapps/go-library/-/badge.svg)](https://sourcegraph.com/github.com/dtapps/go-library?badge)
@ -19,10 +19,10 @@
#### 安装使用 #### 安装使用
```go ```go
go get -v -u gopkg.in/dtapps/go-library.v2 go get -v -u gopkg.in/dtapps/go-library.v3
import ( import (
"gopkg.in/dtapps/go-library.v2" "gopkg.in/dtapps/go-library.v3"
) )
``` ```
@ -34,7 +34,7 @@ import (
```go ```go
import ( import (
"gopkg.in/dtapps/go-library.v2/utils/gotime" "gopkg.in/dtapps/go-library.v3/utils/gotime"
) )
gotime.Current().Now() gotime.Current().Now()
@ -53,6 +53,6 @@ gotime.Current().TimestampWithMillisecond()
## 🔑 License ## 🔑 License
[MIT](https://gopkg.in/dtapps/go-library.v2/blob/master/LICENSE) [MIT](https://gopkg.in/dtapps/go-library.v3/blob/master/LICENSE)
Copyright (c) 2018 茂名聚合科技有限公司 Copyright (c) 2018 茂名聚合科技有限公司

@ -1,4 +1,4 @@
module gopkg.in/dtapps/go-library.v2 module gopkg.in/dtapps/go-library.v3
go 1.17 go 1.17

@ -1,7 +1,7 @@
package dingdanxia package dingdanxia
import ( import (
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"net/http" "net/http"
) )

@ -6,9 +6,9 @@ import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/service/dingtalk/config" "gopkg.in/dtapps/go-library.v3/service/dingtalk/config"
"gopkg.in/dtapps/go-library.v2/service/dingtalk/message" "gopkg.in/dtapps/go-library.v3/service/dingtalk/message"
"gopkg.in/dtapps/go-library.v2/utils/gojson" "gopkg.in/dtapps/go-library.v3/utils/gojson"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"strings" "strings"

@ -2,7 +2,7 @@ package dingtalk
import ( import (
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/service/dingtalk/message" "gopkg.in/dtapps/go-library.v3/service/dingtalk/message"
"testing" "testing"
) )

@ -1,7 +1,7 @@
package eastiot package eastiot
import ( import (
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"net/http" "net/http"
"time" "time"
) )

@ -3,7 +3,7 @@ package eastiot
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gomd5" "gopkg.in/dtapps/go-library.v3/utils/gomd5"
"sort" "sort"
"strconv" "strconv"
) )

@ -2,8 +2,8 @@ package ejiaofei
import ( import (
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"gopkg.in/dtapps/go-library.v2/utils/gomd5" "gopkg.in/dtapps/go-library.v3/utils/gomd5"
"net/http" "net/http"
) )

@ -1,9 +1,9 @@
package ip package ip
import ( import (
"gopkg.in/dtapps/go-library.v2/service/ip/ip2region" "gopkg.in/dtapps/go-library.v3/service/ip/ip2region"
v4 "gopkg.in/dtapps/go-library.v2/service/ip/v4" v4 "gopkg.in/dtapps/go-library.v3/service/ip/v4"
v6 "gopkg.in/dtapps/go-library.v2/service/ip/v6" v6 "gopkg.in/dtapps/go-library.v3/service/ip/v6"
"os" "os"
"strings" "strings"
) )

@ -3,7 +3,7 @@ package ip2region
import ( import (
_ "embed" _ "embed"
"errors" "errors"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"os" "os"
"strconv" "strconv"
"strings" "strings"

@ -4,7 +4,7 @@ import (
_ "embed" _ "embed"
"encoding/binary" "encoding/binary"
"golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/encoding/simplifiedchinese"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"net" "net"
) )

@ -3,7 +3,7 @@ package v6
import ( import (
_ "embed" _ "embed"
"encoding/binary" "encoding/binary"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"math/big" "math/big"
"net" "net"
"strings" "strings"

@ -2,7 +2,7 @@ package jd
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
) )
type App struct { type App struct {

@ -2,7 +2,7 @@ package kashangwl
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"time" "time"
) )

@ -5,7 +5,7 @@ import (
"crypto/md5" "crypto/md5"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/goparams" "gopkg.in/dtapps/go-library.v3/utils/goparams"
"io" "io"
"net/url" "net/url"
"sort" "sort"

@ -2,7 +2,7 @@ package meituan
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"net/http" "net/http"
) )

@ -2,7 +2,7 @@ package meituan
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gotime" "gopkg.in/dtapps/go-library.v3/utils/gotime"
) )
// OrderList 请求参数 // OrderList 请求参数

@ -3,8 +3,8 @@ package pinduoduo
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"regexp" "regexp"
"strconv" "strconv"
"strings" "strings"

@ -3,8 +3,8 @@ package taobao
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"regexp" "regexp"
"strconv" "strconv"
) )

@ -2,7 +2,7 @@ package tianyancha
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"net/http" "net/http"
) )

@ -3,7 +3,7 @@ package wechatmp
import ( import (
"crypto/sha1" "crypto/sha1"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gorandom" "gopkg.in/dtapps/go-library.v3/utils/gorandom"
"io" "io"
"time" "time"
) )

@ -3,7 +3,7 @@ package wechatpayapiv3
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gorequest" "gopkg.in/dtapps/go-library.v3/utils/gorequest"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
) )

@ -2,7 +2,7 @@ package wechatpayapiv3
import ( import (
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gorandom" "gopkg.in/dtapps/go-library.v3/utils/gorandom"
"time" "time"
) )

@ -13,7 +13,7 @@ import (
"encoding/pem" "encoding/pem"
"errors" "errors"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gorandom" "gopkg.in/dtapps/go-library.v3/utils/gorandom"
"net/url" "net/url"
"time" "time"
) )

@ -2,7 +2,7 @@ package wechatqy
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
) )
type App struct { type App struct {

@ -2,7 +2,7 @@ package wechatunion
import ( import (
"encoding/json" "encoding/json"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
"net/http" "net/http"
) )

@ -2,7 +2,7 @@ package wikeyun
import ( import (
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gohttp" "gopkg.in/dtapps/go-library.v3/utils/gohttp"
) )
type App struct { type App struct {

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gorequest" "gopkg.in/dtapps/go-library.v3/utils/gorequest"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"net/url" "net/url"

@ -1,6 +1,6 @@
package gophp package gophp
import "gopkg.in/dtapps/go-library.v2/utils/gophp/serialize" import "gopkg.in/dtapps/go-library.v3/utils/gophp/serialize"
// Serialize 序列 // Serialize 序列
func Serialize(value interface{}) ([]byte, error) { func Serialize(value interface{}) ([]byte, error) {

@ -3,8 +3,8 @@ package serialize
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/goless" "gopkg.in/dtapps/go-library.v3/utils/goless"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"reflect" "reflect"
"sort" "sort"
) )

@ -3,7 +3,7 @@ package serialize
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gostring" "gopkg.in/dtapps/go-library.v3/utils/gostring"
"strconv" "strconv"
) )

@ -2,7 +2,7 @@ package gouuid_test
import ( import (
"fmt" "fmt"
"gopkg.in/dtapps/go-library.v2/utils/gouuid" "gopkg.in/dtapps/go-library.v3/utils/gouuid"
"testing" "testing"
) )

Loading…
Cancel
Save