mirror of
https://github.com/astaxie/beego.git
synced 2025-07-07 02:00:20 +00:00
golint all the files
This commit is contained in:
@ -149,8 +149,8 @@ func NotNil(a interface{}) (isNil bool) {
|
||||
return CompareNot(a, nil)
|
||||
}
|
||||
|
||||
// Config get the Appconfig
|
||||
func Config(returnType, key string, defaultVal interface{}) (value interface{}, err error) {
|
||||
// GetConfig get the Appconfig
|
||||
func GetConfig(returnType, key string, defaultVal interface{}) (value interface{}, err error) {
|
||||
switch returnType {
|
||||
case "String":
|
||||
value = AppConfig.String(key)
|
||||
|
Reference in New Issue
Block a user