rename package name & fix bug

This commit is contained in:
jianzhiyao
2022-04-27 23:05:08 +08:00
parent 6fffb3196f
commit 978b7e4a9d
91 changed files with 231 additions and 251 deletions

View File

@@ -14,7 +14,7 @@
// Package config is used to parse config.
// Usage:
// import "github.com/astaxie/beego/config"
// import "github.com/beego/beego/config"
//Examples.
//
// cnf, err := config.NewConfig("ini", "config.conf")

2
config/env/env.go vendored
View File

@@ -21,7 +21,7 @@ import (
"os"
"strings"
"github.com/astaxie/beego/utils"
"github.com/beego/beego/utils"
)
var env *utils.BeeMap

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/astaxie/beego/config/xml"
// "github.com/astaxie/beego/config"
// _ "github.com/beego/beego/config/xml"
// "github.com/beego/beego/config"
// )
//
// cnf, err := config.NewConfig("xml", "config.xml")
@@ -39,7 +39,7 @@ import (
"strings"
"sync"
"github.com/astaxie/beego/config"
"github.com/beego/beego/config"
"github.com/beego/x2j"
)

View File

@@ -19,7 +19,7 @@ import (
"os"
"testing"
"github.com/astaxie/beego/config"
"github.com/beego/beego/config"
)
func TestXML(t *testing.T) {

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/astaxie/beego/config/yaml"
// "github.com/astaxie/beego/config"
// _ "github.com/beego/beego/config/yaml"
// "github.com/beego/beego/config"
// )
//
// cnf, err := config.NewConfig("yaml", "config.yaml")
@@ -40,7 +40,7 @@ import (
"strings"
"sync"
"github.com/astaxie/beego/config"
"github.com/beego/beego/config"
"github.com/beego/goyaml2"
)

View File

@@ -19,7 +19,7 @@ import (
"os"
"testing"
"github.com/astaxie/beego/config"
"github.com/beego/beego/config"
)
func TestYaml(t *testing.T) {