func reflect.New
22 uses
reflect (current package)
type.go#L1765: o := New(initFuncTypes(n)).Elem()
type.go#L2399: tt := New(StructOf([]StructField{
value.go#L3246: func New(typ Type) Value {
value.go#L3612: ret := New(t).Elem()
value.go#L3619: ret := New(t).Elem()
value.go#L3626: ret := New(t).Elem()
encoding/asn1
marshal.go#L593: defaultValue := reflect.New(v.Type()).Elem()
encoding/json
decode.go#L476: v.Set(reflect.New(v.Type().Elem()))
decode.go#L687: mapElem = reflect.New(elemType).Elem()
decode.go#L716: subv.Set(reflect.New(subv.Type().Elem()))
decode.go#L767: kv = reflect.New(kt)
flag
flag.go#L545: z = reflect.New(typ.Elem())
go.opentelemetry.io/otel/attribute
set.go#L395: at := reflect.New(reflect.ArrayOf(len(kvs), keyValueType)).Elem()
value.go#L82: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeOf(int64Val)))
go.opentelemetry.io/otel/internal/attribute
attribute.go#L28: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeOf(zero)))
attribute.go#L36: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeOf(zero)))
attribute.go#L44: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeOf(zero)))
attribute.go#L52: cp := reflect.New(reflect.ArrayOf(len(v), reflect.TypeOf(zero)))
attribute.go#L66: cpy := reflect.New(correctType)
attribute.go#L80: cpy := reflect.New(correctType)
attribute.go#L94: cpy := reflect.New(correctType)
attribute.go#L108: cpy := reflect.New(correctType)
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |