Files
2026-05-20 16:13:58 +08:00

21 lines
221 B
Go

package statutils
import (
"testing"
)
func AAA() error {
return nil
}
func TTT(fn func() error) string {
return GetFuncName(fn)
}
func TestGetFuncName(t *testing.T) {
s := TTT(AAA)
t.Log("函数名:" + s)
}