github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/jsonDecoderDecode/replacement.go (about) 1 package jsonDecoderDecode 2 3 import ( 4 "encoding/json" 5 "github.com/HXSecurity/DongTai-agent-go/model/request" 6 "reflect" 7 ) 8 9 func Decode(decoder *json.Decoder, v interface{}) error { 10 var u uintptr 11 value := reflect.ValueOf(decoder) 12 u = value.Pointer() 13 e := DecodeT(decoder, v) 14 request.FmtHookPool(request.PoolReq{ 15 Args: request.Collect(decoder), 16 Reqs: request.Collect(v), 17 NeedHook: request.Collect(u), 18 Source: false, 19 OriginClassName: "json.(*Decoder)", 20 MethodName: "Decode", 21 ClassName: "json.(*Decoder)", 22 }) 23 return e 24 } 25 26 func DecodeT(decoder *json.Decoder, v interface{}) error { 27 return nil 28 }