| 123456789101112131415161718192021 |
- package conf
- import (
- "fmt"
- l4g "github.com/alecthomas/log4go"
- "testing"
- )
- func TestGetInfo(t *testing.T) {
- log := &l4g.Logger{}
- defer log.Close()
- LoadConfig(log)
- fmt.Println("name: ", GetInfo().Database.Dbname)
- fmt.Println("host: ", GetInfo().Database.Host)
- fmt.Println("user: ", GetInfo().Database.User)
- fmt.Println("pwd: ", GetInfo().Database.Pwd)
- fmt.Println("template: ", GetInfo().Report.Template)
- fmt.Println("out: ", GetInfo().Report.Out)
- }
|