go-zero-config is a configuration package for go-zero and go-packagist framework.
go get github.com/go-packagist/go-zero-config
package main
import (
"github.com/go-packagist/framework/foundation"
"github.com/go-packagist/go-zero-config"
"github.com/stretchr/testify/assert"
"testing"
)
func main() {
app := foundation.NewApplication()
app.Register(go_zero_config.NewProvider(app.Container, ".test/config.yaml"))
assert.Equal(t, "test.config", app.MustMake("zero.config").(*go_zero_config.Config).Name)
}
The MIT License (MIT). Please see License File for more information.