由于前面有func报错,可以猜到这里func是函数,p是参数 估计用的是call_user_func(func,p) 测试,确实是 这里说一下call_user_func()这个函数 这个函数接收多个参数call_user_func(a,b,c...) 其中a是被调用的函数(自定义函数也可),而b是a的参数 但是call_user_func这个函数不是所有都能调用的, 一些
// Call application function// ea - address to call// type - type of the function to call. can be specified as:// - declaration string. example: "int func(void);"// - typeinfo object. example: GetTinfo(ea)// - zero: the type will be retrieved from the idb// ... - arguments...
phoneNumber := func() []string { if len(alert.DutyUserPhoneNumber) > 0 { return alert.DutyUserPhoneNumber } if len(noticeData.PhoneNumber) > 0 { return noticeData.PhoneNumber } return []string{} }() err := sender.Sender(ec.ctx, sender.SendParams{ TenantId: alert.TenantId, RuleNam...