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.
|
||
|---|---|---|
| .. | ||
| colorize_test.go | ||
| colorize.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.
|
||
|---|---|---|
| .. | ||
| colorize_test.go | ||
| colorize.go | ||