# README

测试用例:

import (
	"fmt"
	"testing"
	
	"github.com/view-team/view-server-core/config"
	"github.com/view-team/view-server-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())
}

# Packages

Package encoder handles source encoding formats.
package loader manages loading from multiple sources.
Package reader parses change sets and provides config values.
Package secrets is an interface for encrypting and decrypting secrets.
Package source is the interface for sources.

# Functions

Return config as raw json.
Get a value from the config.
Load config sources.
LoadFile is short hand for creating a file source and loading it.
Return config as a map.
NewConfig returns new config.
Scan values to a go type.
Force a source changeset sync.
Watch a value for changes.
WithLoader sets the loader for manager config.
WithReader sets the config reader.
WithSource appends a source to list of sources.

# Variables

Default Config Manager.

# Structs

No description provided by the author

# Interfaces

Config is an interface abstraction for dynamic configuration.
Watcher is the config watcher.

# Type aliases

No description provided by the author