rename to v2

This commit is contained in:
Ming Deng
2020-12-14 11:12:00 +08:00
parent a70f7fc920
commit 7bc6010604
241 changed files with 489 additions and 489 deletions

View File

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

View File

@@ -14,7 +14,7 @@
// Package config is used to parse config.
// Usage:
// import "github.com/beego/beego/config"
// import "github.com/beego/beego/v2/config"
// Examples.
//
// cnf, err := config.NewConfig("ini", "config.conf")
@@ -41,7 +41,7 @@
package config
import (
"github.com/beego/beego/core/config"
"github.com/beego/beego/v2/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/beego/beego/core/config/env"
"github.com/beego/beego/v2/core/config/env"
)
// Get returns a value by key.

View File

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

View File

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

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/beego/beego/config/xml"
// "github.com/beego/beego/config"
// _ "github.com/beego/beego/v2/config/xml"
// "github.com/beego/beego/v2/config"
// )
//
// cnf, err := config.NewConfig("xml", "config.xml")
@@ -30,5 +30,5 @@
package xml
import (
_ "github.com/beego/beego/core/config/xml"
_ "github.com/beego/beego/v2/core/config/xml"
)

View File

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

View File

@@ -20,8 +20,8 @@
//
// Usage:
// import(
// _ "github.com/beego/beego/config/yaml"
// "github.com/beego/beego/config"
// _ "github.com/beego/beego/v2/config/yaml"
// "github.com/beego/beego/v2/config"
// )
//
// cnf, err := config.NewConfig("yaml", "config.yaml")
@@ -30,5 +30,5 @@
package yaml
import (
_ "github.com/beego/beego/core/config/yaml"
_ "github.com/beego/beego/v2/core/config/yaml"
)

View File

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