1 // Copyright 2017, The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE.md file.
7 func Equal(x, y Message) bool {
8 if x == nil || y == nil {
9 return x == nil && y == nil
11 return x.String() == y.String()
14 type Message interface {
19 type proto interface {
23 type notComparable struct {
24 unexportedField func()
27 type Stringer struct{ X string }
29 func (s *Stringer) String() string { return s.X }
31 // Project1 protocol buffers
34 Eagle_MissingCalls int
36 Dreamer_MissingCalls int
69 // Project2 protocol buffers
83 // Project3 protocol buffers
102 // Project4 protocol buffers
111 Restrictions struct {