2025-06-22 15:14:10 +08:00

20 lines
372 B
Go

package application_test
import (
"reflect"
"testing"
"122.51.31.227/go-course/go18/devcloud/mpaas/apps/application"
)
func TestXxx(t *testing.T) {
app := &application.Application{}
tt := reflect.TypeOf(app)
// If app is a pointer, get the element type
if tt.Kind() == reflect.Ptr {
tt = tt.Elem()
}
fnName := tt.PkgPath() + "." + tt.Name()
t.Log(fnName)
}