mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-27 03:39:37 +08:00
[feat] 规则链添加切换设备节点
This commit is contained in:
@@ -118,6 +118,11 @@ func (meta *Metadata) GetValue(key string) any {
|
||||
return (*meta)[key]
|
||||
}
|
||||
|
||||
func (meta *Metadata) Has(key string) bool {
|
||||
_, ok := (*meta)[key]
|
||||
return ok
|
||||
}
|
||||
|
||||
func (meta *Metadata) SetValue(key string, val interface{}) {
|
||||
(*meta)[key] = val
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user