feat: ACL

This commit is contained in:
Toby
2023-08-14 19:00:56 -07:00
parent 6fa958815b
commit a7d74a9ec1
12 changed files with 380 additions and 61 deletions

View File

@@ -2,7 +2,6 @@ package acl
import (
"fmt"
"os"
"regexp"
"strings"
)
@@ -71,11 +70,3 @@ func ParseTextRules(text string) ([]TextRule, error) {
}
return rules, nil
}
func ParseTextRulesFile(filename string) ([]TextRule, error) {
bs, err := os.ReadFile(filename)
if err != nil {
return nil, err
}
return ParseTextRules(string(bs))
}