1
This commit is contained in:
parent
867867b5d6
commit
b590bbd0fe
@ -193,3 +193,7 @@ func NewSliceElement[T any](s *[]T) *T {
|
|||||||
*s = append(*s, *v)
|
*s = append(*s, *v)
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetTypeName(v interface{}) string {
|
||||||
|
return reflect.TypeOf(v).String()
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user