func reflect.MakeSlice
9 uses
reflect (current package)
value.go#L446: slice := MakeSlice(toRType(t.In(n)), m, m)
value.go#L3205: func MakeSlice(typ Type, len, cap int) Value {
encoding/asn1
asn1.go#L646: ret = reflect.MakeSlice(sliceType, numElements, numElements)
asn1.go#L950: val.Set(reflect.MakeSlice(sliceType, len(innerBytes), len(innerBytes)))
encoding/json
decode.go#L588: v.Set(reflect.MakeSlice(v.Type(), 0, 0))
fmt
scan.go#L1040: v.Set(reflect.MakeSlice(typ, len(str), len(str)))
github.com/oapi-codegen/runtime
bindform.go#L154: result := reflect.MakeSlice(v.Type(), indexedElementsCount+len(items), indexedElementsCount+len(items))
bindparam.go#L240: newArray := reflect.MakeSlice(t, len(parts), len(parts))
deepobject.go#L218: dstSlice := reflect.MakeSlice(it, sliceLength, sliceLength)
 |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |