mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 20:07:38 +03:00
11 lines
152 B
Go
11 lines
152 B
Go
//go:build go1.21
|
|
|
|
package common
|
|
|
|
func ClearArray[T ~[]E, E any](t T) {
|
|
clear(t)
|
|
}
|
|
|
|
func ClearMap[T ~map[K]V, K comparable, V any](t T) {
|
|
clear(t)
|
|
}
|