func reflect.Zero
8 uses
reflect (current package)
value.go#L624: ret[i] = Zero(toRType(tv))
value.go#L726: in = append(in, Zero(toRType(typ)))
value.go#L3220: func Zero(typ Type) Value {
value.go#L3777: ret := Zero(typ)
encoding/asn1
marshal.go#L605: if reflect.DeepEqual(v.Interface(), reflect.Zero(v.Type()).Interface()) {
encoding/json
decode.go#L779: if err != nil || reflect.Zero(kt).OverflowInt(n) {
decode.go#L787: if err != nil || reflect.Zero(kt).OverflowUint(n) {
flag
flag.go#L547: z = reflect.Zero(typ)
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. |