mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
更改规则链缓存
This commit is contained in:
@@ -92,3 +92,11 @@ func InterfaceToStruct(m interface{}, s interface{}) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func StringToStruct(m string, s interface{}) error {
|
||||
err := json.Unmarshal([]byte(m), s)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user