我在变量中保存了一些函数,我需要将其转换为字符串文字:testfunc:=func(orgidint64)bool{returnfalse}预期结果字符串文字如下:resultstr:=`func(orgidint64)bool{returnfalse}`这是我尝试过的:testfuncstr:=reflect.valueof(testfunc).string()但是这只能让我得到以下文字:"",
2024-02-10评论:0访问次数:521