format code

This commit is contained in:
Deng Ming
2022-12-23 10:25:06 +08:00
parent 15fa7e15d4
commit 5ade9fa025
64 changed files with 35 additions and 109 deletions

View File

@@ -37,7 +37,6 @@
// cnf.DIY(key string) (interface{}, error)
// cnf.GetSection(section string) (map[string]string, error)
// cnf.SaveConfigFile(filename string) error
// More docs http://beego.vip/docs/module/config.md
package config
import (

View File

@@ -19,8 +19,9 @@ import (
"os"
"strings"
"github.com/beego/beego/v2/core/config"
"github.com/pelletier/go-toml"
"github.com/beego/beego/v2/core/config"
)
const keySeparator = "."

View File

@@ -26,7 +26,6 @@
//
// cnf, err := config.NewConfig("xml", "config.xml")
//
// More docs http://beego.vip/docs/module/config.md
package xml
import (
@@ -39,11 +38,11 @@ import (
"strings"
"sync"
"github.com/beego/x2j"
"github.com/mitchellh/mapstructure"
"github.com/beego/beego/v2/core/config"
"github.com/beego/beego/v2/core/logs"
"github.com/beego/x2j"
)
// Config is a xml config parser and implements Config interface.

View File

@@ -21,7 +21,6 @@
//
// cnf, err := config.NewConfig("yaml", "config.yaml")
//
// More docs http://beego.vip/docs/module/config.md
package yaml
import (