This commit is contained in:
aozhiwei 2023-09-15 15:09:58 +08:00
parent 867867b5d6
commit b590bbd0fe

View File

@ -193,3 +193,7 @@ func NewSliceElement[T any](s *[]T) *T {
*s = append(*s, *v)
return v
}
func GetTypeName(v interface{}) string {
return reflect.TypeOf(v).String()
}