mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
新增go modules支持,自行管理第三方包依赖,方便开发者使用
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
package gcharset
|
||||
|
||||
import (
|
||||
"github.com/axgle/mahonia"
|
||||
"gitee.com/johng/gf/third/github.com/axgle/mahonia"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
@ -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内容
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user