// NewEnforcer returns a newly initialized Enforcer instance.
NewEnforcer returns a newly initialized Enforcer instance.
// NewEnforcer returns a newly initialized Enforcer instance .
func NewEnforcer(fs http.FileSystem, paths ...string) (*casbin.Enforcer, error) {
	paths = normalizePaths(paths)
	model, err := NewModel(fs, paths[0])
	if err != nil {
		return nil, err
	}
	return casbin.NewEnforcer(model, NewAdapter(fs, paths[1]))
}
func NewEnforcer ( fs http . FileSystem , paths ... string ) ( * casbin . Enforcer , error ) { paths = normalizePaths ( paths ) model , err := NewModel ( fs , paths [ 0 ] ) if err != nil { return nil , err } return casbin . NewEnforcer ( model , NewAdapter ( fs , paths [ 1 ] ) ) }
NewEnforcer returns a newly initialized Enforcer instance.
NewEnforcer returns a newly initialized Enforcer instance .