format code
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
//
|
||||
// AddHealthCheck("database",&DatabaseCheck{})
|
||||
//
|
||||
// more docs: http://beego.vip/docs/module/toolbox.md
|
||||
package admin
|
||||
|
||||
// AdminCheckList holds health checker map
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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 = "."
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
//
|
||||
// cnf, err := config.NewConfig("yaml", "config.yaml")
|
||||
//
|
||||
// More docs http://beego.vip/docs/module/config.md
|
||||
package yaml
|
||||
|
||||
import (
|
||||
|
||||
@@ -11,7 +11,9 @@ import (
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
||||
var _ = fmt.Errorf
|
||||
|
||||
var _ = math.Inf
|
||||
|
||||
var (
|
||||
@@ -339,6 +341,7 @@ func encodeFixed64Log(data []byte, offset int, v uint64) int {
|
||||
data[offset+7] = uint8(v >> 56)
|
||||
return offset + 8
|
||||
}
|
||||
|
||||
func encodeFixed32Log(data []byte, offset int, v uint32) int {
|
||||
data[offset] = uint8(v)
|
||||
data[offset+1] = uint8(v >> 8)
|
||||
@@ -346,6 +349,7 @@ func encodeFixed32Log(data []byte, offset int, v uint32) int {
|
||||
data[offset+3] = uint8(v >> 24)
|
||||
return offset + 4
|
||||
}
|
||||
|
||||
func encodeVarintLog(data []byte, offset int, v uint64) int {
|
||||
for v >= 1<<7 {
|
||||
data[offset] = uint8(v&0x7f | 0x80)
|
||||
@@ -447,6 +451,7 @@ func sovLog(x uint64) (n int) {
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func sozLog(x uint64) (n int) {
|
||||
return sovLog((x << 1) ^ (x >> 63))
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
// log.Debug("debug")
|
||||
// log.Critical("critical")
|
||||
//
|
||||
// more docs http://beego.vip/docs/module/logs.md
|
||||
package logs
|
||||
|
||||
import (
|
||||
|
||||
@@ -50,9 +50,5 @@ In your view templates:
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
See also
|
||||
|
||||
http://beego.vip/docs/mvc/view/page.md
|
||||
|
||||
*/
|
||||
package pagination
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// more info: http://beego.vip/docs/mvc/controller/validation.md
|
||||
package validation
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user