2019-10-09 14:22:53 +00:00
|
|
|
// +build go1.13
|
|
|
|
|
2019-11-21 16:19:22 +00:00
|
|
|
package protocol
|
2019-10-09 14:22:53 +00:00
|
|
|
|
|
|
|
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()
|
|
|
|
}
|