I searched the source code of Go, and found no usages of
"== (reflect.Value{})" and "!= (reflect.Value{})". I think
it's more idiomatic to use "IsValid" to check a zero Value.
|
||
|---|---|---|
| .. | ||
| conv.go | ||
| repl.go | ||
| starlark_mapping.go | ||
| starlark.go | ||
I searched the source code of Go, and found no usages of
"== (reflect.Value{})" and "!= (reflect.Value{})". I think
it's more idiomatic to use "IsValid" to check a zero Value.
|
||
|---|---|---|
| .. | ||
| conv.go | ||
| repl.go | ||
| starlark_mapping.go | ||
| starlark.go | ||