zoie 88e39c560e update: 修改module 1 gadu atpakaļ
..
encoder 88e39c560e update: 修改module 1 gadu atpakaļ
loader 88e39c560e update: 修改module 1 gadu atpakaļ
reader 88e39c560e update: 修改module 1 gadu atpakaļ
secrets 88e39c560e update: 修改module 1 gadu atpakaļ
source 88e39c560e update: 修改module 1 gadu atpakaļ
README.md 88e39c560e update: 修改module 1 gadu atpakaļ
config.go 88e39c560e update: 修改module 1 gadu atpakaļ
default.go 88e39c560e update: 修改module 1 gadu atpakaļ
default_test.go 88e39c560e update: 修改module 1 gadu atpakaļ
options.go 88e39c560e update: 修改module 1 gadu atpakaļ
value.go 88e39c560e update: 修改module 1 gadu atpakaļ

README.md

###

测试用例:

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())
}