var content = `[app] mode="dev"`
if err := conf.Load(bytes.NewBufferString(content), toml.Unmarshal); err != nil {
panic(err)
}
import (
file_datasource "github.com/eric-tech01/simple-file/datasource/file"
)
provider := file_datasource.NewDataSource(path)
if err := conf.Load(provider, toml.Unmarshal); err != nil {
panic(err)
}