github.com/HXSecurity/DongTai-agent-go@v0.4.2/core/base/fmtSprintf/replacement.go (about)

     1  package fmtSprintf
     2  
     3  import (
     4  	"github.com/HXSecurity/DongTai-agent-go/model/request"
     5  )
     6  
     7  func Sprintf(format string, a ...interface{}) string {
     8  	s := SprintfT(format, a...)
     9  	request.FmtHookPool(request.PoolReq{
    10  		Args:            request.Collect(format, a),
    11  		Reqs:            request.Collect(s),
    12  		Source:          false,
    13  		OriginClassName: "fmt",
    14  		MethodName:      "Sprintf",
    15  		ClassName:       "fmt",
    16  	})
    17  	return s
    18  }
    19  
    20  func SprintfT(format string, a ...interface{}) string {
    21  	return ""
    22  }