| 
				
					 | 
			há 2 anos atrás | |
|---|---|---|
| .. | ||
| encoder | há 2 anos atrás | |
| loader | há 2 anos atrás | |
| reader | há 2 anos atrás | |
| secrets | há 2 anos atrás | |
| source | há 2 anos atrás | |
| README.md | há 2 anos atrás | |
| config.go | há 2 anos atrás | |
| default.go | há 2 anos atrás | |
| default_test.go | há 2 anos atrás | |
| options.go | há 2 anos atrás | |
| value.go | há 2 anos atrás | |
###
测试用例:
import (
	"fmt"
	"testing"
	
	"gogs.baozhida.cn/zoie/OAuth-core/config"
	"gogs.baozhida.cn/zoie/OAuth-core/config/source/file"
)
func TestApp(t *testing.T)  {
	c, err := config.NewConfig()
	if err != nil {
		t.Error(err)
	}
	err = c.Load(file.NewSource(file.WithPath("config/settings.yml")))
	if err != nil {
		t.Error(err)
	}
	fmt.Println(c.Map())
}