reflect.Value.Cap (method)
12 uses
reflect (current package)
value.go#L772: func (v Value) Cap() int {
value.go#L2025: m := s.Cap()
encoding/gob
decode.go#L376: if value.Cap() < n {
decode.go#L625: if value.Cap() < n {
encoding/json
decode.go#L542: if i >= v.Cap() {
decode.go#L543: newcap := v.Cap() + v.Cap()/2
github.com/aws/aws-sdk-go/aws/awsutil
copy.go#L82: s := reflect.MakeSlice(src.Type(), src.Len(), src.Cap())
github.com/go-redis/redis/v8/internal/proto
scan.go#L141: if v.Len() < v.Cap() {
scan.go#L158: if v.Len() < v.Cap() {
github.com/google/go-cmp/cmp
report_reflect.go#L236: header := fmt.Sprintf("ptr:%v, len:%d, cap:%d", formatPointer(value.PointerOf(v), false), v.Len(), v.Cap())
text/template
funcs.go#L266: cap = item.Cap()
![]() |
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. |