status-go/protocol/v1/value_is_zero.go

12 lines
222 B
Go

// +build go1.13
package protocol
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()
}