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