mirror of
https://github.com/weloe/token-go.git
synced 2025-10-05 15:36:50 +08:00
feat: add viper to implement read yaml,ini config
This commit is contained in:
@@ -145,7 +145,7 @@ func TestNewEnforcerByFile(t *testing.T) {
|
||||
}
|
||||
|
||||
adapter := persist.NewDefaultAdapter()
|
||||
conf := "testConf"
|
||||
conf := "./examples/token_conf.yaml"
|
||||
|
||||
enforcer, err := NewEnforcer(conf, adapter)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user