9 lines
155 B
Go
9 lines
155 B
Go
package goref
|
|
|
|
import "reflect"
|
|
|
|
func BuildSlice(t reflect.Type) any {
|
|
sliceT := reflect.SliceOf(t)
|
|
return reflect.MakeSlice(sliceT, 0, 0).Interface()
|
|
}
|