We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b52744 commit cc9e2f8Copy full SHA for cc9e2f8
chromium/preloadlist/preloadlist.go
@@ -94,6 +94,11 @@ type Entry struct {
94
Policy PolicyType `json:"policy"`
95
}
96
97
+// Equal checks if Entry e is equal to Entry e2 using == to compare all fields.
98
+func (e Entry) Equal(e2 Entry) bool {
99
+ return e.Name == e2.Name && e.Mode == e2.Mode && e.IncludeSubDomains == e2.IncludeSubDomains && e.Policy == e2.Policy
100
+}
101
+
102
// IndexedEntries is case-insensitive index of
103
// the entries from the given PreloadList.
104
type IndexedEntries struct {
0 commit comments