status-go/protocol/v1/value_is_zero.go
Pedro Pombeiro ed5a5c154d
Move to monorepo structure (#1684)
Move to a monorepo structure with submodules

- Rename status-protocol-go to status-go/protocol
2019-11-21 17:19:22 +01:00

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()
}