chore: add IN-USER and IN-NAME rules

This commit is contained in:
wwqgtxx
2023-05-28 17:19:57 +08:00
parent 7aae781569
commit 9c2972afb0
9 changed files with 142 additions and 18 deletions

View File

@ -16,6 +16,12 @@ func WithInName(name string) Addition {
}
}
func WithInUser(user string) Addition {
return func(metadata *C.Metadata) {
metadata.InUser = user
}
}
func WithSpecialRules(specialRules string) Addition {
return func(metadata *C.Metadata) {
metadata.SpecialRules = specialRules