This commit is contained in:
life
2014-05-07 13:06:24 +08:00
parent fac05a7b6c
commit 476ade10e7
1085 changed files with 259628 additions and 0 deletions

15
app/lea/Debug.go Normal file
View File

@ -0,0 +1,15 @@
package lea
import (
"encoding/json"
"github.com/revel/revel"
)
func Log(i interface{}) {
revel.INFO.Println(i)
}
func LogJ(i interface{}) {
b, _ := json.MarshalIndent(i, "", " ")
revel.INFO.Println(string(b))
}