func NewRulesLoader(rules meta.Rules) (*RulesLoader, error) {
    return &RulesLoader{
        rules: rules,
    }, nil
}
NewRulesLoader is used to initialize a RulesLoader
package loader
import (
    "github.com/storyicon/grbac/pkg/meta"
)
type RulesLoader struct {
    rules meta.Rules
}