status-protocol-go/v1/value_is_zero.go

12 lines
225 B
Go

// +build go1.13
package statusproto
import "reflect"
// isZeroValue reports whether v is the zero value for its type.
// It panics if the argument is invalid.
func isZeroValue(v reflect.Value) bool {
return v.IsZero()
}