using new organization

This commit is contained in:
Ming Deng
2020-12-13 23:09:19 +08:00
parent 093f976365
commit a70f7fc920
253 changed files with 504 additions and 503 deletions

View File

@@ -17,7 +17,7 @@ package config
import (
"github.com/pkg/errors"
"github.com/astaxie/beego/core/config"
"github.com/beego/beego/core/config"
)
type newToOldConfigerAdapter struct {

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")
@@ -41,7 +41,7 @@
package config
import (
"github.com/astaxie/beego/core/config"
"github.com/beego/beego/core/config"
)
// Configer defines how to get and set value from configuration raw data.

View File

@@ -17,7 +17,7 @@
package env
import (
"github.com/astaxie/beego/core/config/env"
"github.com/beego/beego/core/config/env"
)
// Get returns a value by key.

View File

@@ -15,7 +15,7 @@
package config
import (
"github.com/astaxie/beego/core/config"
"github.com/beego/beego/core/config"
)
// NewFakeConfig return a fake Configer

View File

@@ -15,5 +15,5 @@
package config
import (
_ "github.com/astaxie/beego/core/config/json"
_ "github.com/beego/beego/core/config/json"
)

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")
@@ -30,5 +30,5 @@
package xml
import (
_ "github.com/astaxie/beego/core/config/xml"
_ "github.com/beego/beego/core/config/xml"
)

View File

@@ -19,7 +19,7 @@ import (
"os"
"testing"
"github.com/astaxie/beego/adapter/config"
"github.com/beego/beego/adapter/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")
@@ -30,5 +30,5 @@
package yaml
import (
_ "github.com/astaxie/beego/core/config/yaml"
_ "github.com/beego/beego/core/config/yaml"
)

View File

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