github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/builderWriteString/replacement.go (about) 1 package builderWriteString 2 3 import ( 4 "github.com/HXSecurity/DongTai-agent-go/model/request" 5 "strings" 6 ) 7 8 func WriteString(b *strings.Builder, s string) (n int, err error) { 9 argStr := b.String() 10 n, err = WriteStringT(b, s) 11 request.FmtHookPool(request.PoolReq{ 12 Args: request.Collect(argStr, s), 13 Reqs: request.Collect(b.String()), 14 Source: false, 15 OriginClassName: "strings.(*Builder)", 16 MethodName: "WriteString", 17 ClassName: "strings.(*Builder)", 18 }) 19 return n, err 20 } 21 22 func WriteStringT(b *strings.Builder, s string) (n int, err error) { 23 return n, err 24 }