func reflect.SliceOf
9 uses
reflect (current package)
type.go#L2287: func SliceOf(t Type) Type {
type.go#L2877: array.slice = SliceOf(elem).(*rtype)
github.com/google/go-cmp/cmp/cmpopts
sort.go#L126: dst := reflect.MakeSlice(reflect.SliceOf(outType), src.Len(), src.Len())
github.com/jackc/pgtype
convert.go#L199: baseSliceType := reflect.SliceOf(refVal.Type().Elem())
convert.go#L421: baseSliceType := reflect.PtrTo(reflect.SliceOf(baseElemType))
pgtype.go#L328: sliceType := reflect.SliceOf(valueType)
github.com/lib/pq
array.go#L374: values := reflect.MakeSlice(reflect.SliceOf(dtype), len(elems), len(elems))
google.golang.org/api/support/bundler
bundler.go#L152: itemSliceZero: reflect.Zero(reflect.SliceOf(reflect.TypeOf(itemExample))),
google.golang.org/protobuf/internal/filetype
build.go#L231: goType = reflect.SliceOf(goType)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |