conf_test.go 289 B

1234567891011121314
  1. package conf
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestGetInfo(t *testing.T) {
  7. fmt.Println("name: ", GetInfo().Database.Dbname)
  8. fmt.Println("host: ", GetInfo().Database.Host)
  9. fmt.Println("user: ", GetInfo().Database.User)
  10. fmt.Println("pwd: ", GetInfo().Database.Pwd)
  11. }