mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 22:01:02 +00:00
config: fix the import issue
This commit is contained in:
@ -16,6 +16,7 @@ import (
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/astaxie/beego/config"
|
||||
"github.com/beego/goyaml2"
|
||||
)
|
||||
|
||||
@ -24,7 +25,7 @@ type YAMLConfig struct {
|
||||
}
|
||||
|
||||
// Parse returns a ConfigContainer with parsed yaml config map.
|
||||
func (yaml *YAMLConfig) Parse(filename string) (ConfigContainer, error) {
|
||||
func (yaml *YAMLConfig) Parse(filename string) (config.ConfigContainer, error) {
|
||||
y := &YAMLConfigContainer{
|
||||
data: make(map[string]interface{}),
|
||||
}
|
||||
@ -146,5 +147,5 @@ func (c *YAMLConfigContainer) DIY(key string) (v interface{}, err error) {
|
||||
}
|
||||
|
||||
func init() {
|
||||
Register("yaml", &YAMLConfig{})
|
||||
config.Register("yaml", &YAMLConfig{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user