简单地读取不同环境的配置, 目前仅限于YAML
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 line
176 B

  1. package grconfig
  2. import (
  3. "log"
  4. "lot.gaore.com/library/grconfig"
  5. "testing"
  6. )
  7. func TestNew(t *testing.T) {
  8. gr := grconfig.New("conf/")
  9. log.Println(gr.String("test.a"))
  10. }