This commit is contained in:
aozhiwei 2023-09-16 09:59:08 +08:00
parent b590bbd0fe
commit aa48a0c524

View File

@ -194,6 +194,10 @@ func NewSliceElement[T any](s *[]T) *T {
return v
}
func AppendSlice[T any](s *[]T, val T) {
*s = append(*s, val)
}
func GetTypeName(v interface{}) string {
return reflect.TypeOf(v).String()
}