forked from all_user/stat_center
21 lines
221 B
Go
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)
|
|
|
|
}
|