func reflect.New
21 uses
reflect (current package)
type.go#L1926: o := New(initFuncTypes(n)).Elem()
type.go#L2552: tt := New(StructOf([]StructField{
value.go#L3312: func New(typ Type) Value {
value.go#L3678: ret := New(t).Elem()
value.go#L3685: ret := New(t).Elem()
value.go#L3692: ret := New(t).Elem()
encoding/asn1
marshal.go#L590: 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#L766: kv = reflect.New(kt)
decode.go#L774: kv = reflect.New(kt).Elem()
decode.go#L783: kv = reflect.New(kt).Elem()
decode.go#L792: kv = reflect.New(kt).Elem()
github.com/oapi-codegen/runtime
bindform.go#L133: ptrData = reflect.New(v.Type().Elem())
bindform.go#L257: value := reflect.New(valueType)
bindform.go#L273: value := reflect.New(valueType)
bindparam.go#L334: newValue := reflect.New(t.Elem())
bindstring.go#L48: v.Set(reflect.New(t.Elem()))
deepobject.go#L207: dstVal := reflect.New(iv.Type().Elem())
deepobject.go#L296: dstVal := reflect.New(it.Elem())
![]() |
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. |