1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-07 07:20:19 +00:00

Add map shortcut and ServeFormatted method in output

This commit is contained in:
Ruben Cid
2018-08-20 22:55:50 +02:00
parent 7e0649d661
commit 5c407ff2e3
10 changed files with 66 additions and 69 deletions

View File

@ -6,7 +6,7 @@ import (
)
func TestList_01(t *testing.T) {
m := make(map[string]interface{})
m := make(M)
list("BConfig", BConfig, m)
t.Log(m)
om := oldMap()
@ -18,8 +18,8 @@ func TestList_01(t *testing.T) {
}
}
func oldMap() map[string]interface{} {
m := make(map[string]interface{})
func oldMap() M {
m := make(M)
m["BConfig.AppName"] = BConfig.AppName
m["BConfig.RunMode"] = BConfig.RunMode
m["BConfig.RouterCaseSensitive"] = BConfig.RouterCaseSensitive