新增go modules支持,自行管理第三方包依赖,方便开发者使用

This commit is contained in:
john
2018-10-22 11:13:00 +08:00
parent 77e13a9a16
commit 7fbbf09b0e
1605 changed files with 383807 additions and 25 deletions

View File

@ -11,7 +11,7 @@
package gcharset
import (
"github.com/axgle/mahonia"
"gitee.com/johng/gf/third/github.com/axgle/mahonia"
"errors"
"fmt"
)

View File

@ -10,7 +10,7 @@ package ghtml
import (
"strings"
"html"
"github.com/grokify/html-strip-tags-go"
"gitee.com/johng/gf/third/github.com/grokify/html-strip-tags-go"
)
// 过滤掉HTML标签只返回text内容

View File

@ -10,7 +10,7 @@ package gtoml
import (
"bytes"
"encoding/json"
"github.com/BurntSushi/toml"
"gitee.com/johng/gf/third/github.com/BurntSushi/toml"
)
func Encode(v interface{}) ([]byte, error) {

View File

@ -8,11 +8,11 @@
package gxml
import (
"github.com/clbanning/mxj"
"gitee.com/johng/gf/third/github.com/clbanning/mxj"
"encoding/xml"
"io"
"gitee.com/johng/gf/g/util/gregex"
"github.com/axgle/mahonia"
"gitee.com/johng/gf/third/github.com/axgle/mahonia"
"errors"
"fmt"
"strings"

View File

@ -7,7 +7,7 @@
// YAML
package gyaml
import "github.com/ghodss/yaml"
import "gitee.com/johng/gf/third/github.com/ghodss/yaml"
func Encode(v interface{}) ([]byte, error) {
return yaml.Marshal(v)