mirror of
https://github.com/xmdhs/sing-box-ruleset.git
synced 2025-02-06 04:52:42 +08:00
14 lines
235 B
Go
14 lines
235 B
Go
package main
|
|
|
|
type Ruleset struct {
|
|
Rules []map[string][]any `json:"rules"`
|
|
Version int `json:"version"`
|
|
}
|
|
|
|
func NewRuleSet(rules []map[string][]any) *Ruleset {
|
|
return &Ruleset{
|
|
Rules: rules,
|
|
Version: 1,
|
|
}
|
|
}
|