Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/go-cmp
/ types & classes
Types & classes
226 in github.com/google/go-cmp
⨍
Functions
428
◇
Types & classes
226
↓ 6 callers
TypeAlias
textLine
textLine is a single-line segment of text and is always a leaf node in the textNode tree.
cmp/report_text.go:339
↓ 2 callers
TypeAlias
commentString
cmp/report_text.go:430
↓ 2 callers
FuncType
exporter
func(reflect.Type) bool
cmp/options.go:412
↓ 2 callers
TypeAlias
repeatCount
cmp/report_text.go:54
↓ 1 callers
TypeAlias
MyArray
cmp/internal/value/sort_test.go:19
↓ 1 callers
TypeAlias
MyBytes
cmp/compare_test.go:866
↓ 1 callers
TypeAlias
MyFloat
cmp/cmpopts/util_test.go:26
↓ 1 callers
TypeAlias
MyInt
cmp/cmpopts/util_test.go:24
↓ 1 callers
TypeAlias
MyString
cmp/compare_test.go:864
↓ 1 callers
TypeAlias
MyString
cmp/internal/value/sort_test.go:18
↓ 1 callers
TypeAlias
Options
Options is a list of [Option] values that also satisfies the [Option] interface. Helper comparison packages may return an Options value when packing m
cmp/options.go:66
↓ 1 callers
TypeAlias
Stringer
cmp/compare_test.go:110
↓ 1 callers
TypeAlias
germSorter
cmp/compare_test.go:2690
↓ 1 callers
TypeAlias
myString
cmp/example_test.go:233
↓ 1 callers
TypeAlias
textList
textList is a comma-separated list of textWrap or textLine nodes. The list may be formatted as multi-lines or single-line at the discretion of the tex
cmp/report_text.go:141
FuncType
AssignA
Equal method (with interface argument) on non-satisfying receiver
cmp/internal/teststructs/structs.go:73
Struct
AssignB
cmp/internal/teststructs/structs.go:74
TypeAlias
AssignC
cmp/internal/teststructs/structs.go:75
TypeAlias
AssignD
cmp/internal/teststructs/structs.go:76
Struct
Bar
cmp/internal/teststructs/foo1/foo.go:10
Struct
Bar
cmp/internal/teststructs/foo2/foo.go:10
Struct
Bar1
cmp/cmpopts/util_test.go:37
Struct
Bar2
cmp/cmpopts/util_test.go:38
Struct
Bar3
cmp/cmpopts/util_test.go:43
Struct
Cartel
This is an sanitized example of equality from a real use-case. The original equality function was as follows: * func equalCartel(x, y Cartel) bool {
cmp/internal/teststructs/project4.go:59
Struct
Client
cmp/example_test.go:313
Struct
Client
cmp/cmpopts/example_test.go:63
Struct
CycleAlpha
cmp/compare_test.go:2376
Struct
CycleBravo
cmp/compare_test.go:2380
Struct
DiffReporter
DiffReporter is a simple custom reporter that only records differences detected during comparison.
cmp/example_reporter_test.go:16
Struct
Dirt
Project3 protocol buffers
cmp/internal/testprotos/protos.go:85
Struct
Dirt
cmp/internal/teststructs/project3.go:47
TypeAlias
DiscordState
cmp/internal/teststructs/project3.go:58
Struct
Dish
Project2 protocol buffers
cmp/internal/testprotos/protos.go:76
Struct
Dish
cmp/internal/teststructs/project2.go:60
Struct
Donkey
Project1 protocol buffers
cmp/internal/testprotos/protos.go:62
Struct
Donkey
cmp/internal/teststructs/project1.go:231
Struct
DonkeyImmutable
cmp/internal/teststructs/project1.go:238
TypeAlias
Donkey_States
Project1 protocol buffers
cmp/internal/testprotos/protos.go:39
Struct
Dreamer
Project1 protocol buffers
cmp/internal/testprotos/protos.go:47
Struct
Dreamer
cmp/internal/teststructs/project1.go:163
Struct
DreamerImmutable
cmp/internal/teststructs/project1.go:180
TypeAlias
Dreamer_MissingCalls
Project1 protocol buffers
cmp/internal/testprotos/protos.go:36
TypeAlias
Dreamer_States
Project1 protocol buffers
cmp/internal/testprotos/protos.go:35
Struct
Eagle
Project1 protocol buffers
cmp/internal/testprotos/protos.go:42
Struct
Eagle
This is an sanitized example of equality from a real use-case. The original equality function was as follows: * func equalEagle(x, y Eagle) bool { if
cmp/internal/teststructs/project1.go:137
Struct
EagleImmutable
cmp/internal/teststructs/project1.go:151
TypeAlias
Eagle_MissingCalls
Project1 protocol buffers
cmp/internal/testprotos/protos.go:34
TypeAlias
Eagle_States
Project1 protocol buffers
cmp/internal/testprotos/protos.go:33
TypeAlias
EditScript
EditScript represents the series of differences between two lists.
cmp/internal/diff/diff.go:37
TypeAlias
EditType
EditType represents a single operation within an edit-script.
cmp/internal/diff/diff.go:23
Interface
EmptyInterface
cmp/cmpopts/util_test.go:69
Struct
EmptyStruct
cmp/internal/value/sort_test.go:25
FuncType
EqualFunc
EqualFunc reports whether the symbols at indexes ix and iy are equal. When called by Difference, the index is guaranteed to be within nx and ny.
cmp/internal/diff/diff.go:92
Struct
Everything
cmp/cmpopts/util_test.go:60
Struct
FakeMutex
This is an sanitized example of equality from a real use-case. The original equality function was as follows: * func equalDirt(x, y *Dirt) bool { if
cmp/internal/teststructs/project3.go:42
Struct
Foo1
cmp/cmpopts/util_test.go:34
Struct
Foo2
cmp/cmpopts/util_test.go:35
Struct
Foo3
cmp/cmpopts/util_test.go:36
Struct
Gateway
cmp/example_test.go:307
Struct
Gateway
cmp/cmpopts/example_test.go:57
Struct
Germ
Project2 protocol buffers
cmp/internal/testprotos/protos.go:71
Struct
GermBatch
This is an sanitized example of equality from a real use-case. The original equality function was as follows: * func equalBatch(b1, b2 *GermBatch) boo
cmp/internal/teststructs/project2.go:49
Struct
Goat
Project1 protocol buffers
cmp/internal/testprotos/protos.go:57
Struct
Goat
cmp/internal/teststructs/project1.go:216
Struct
GoatImmutable
cmp/internal/teststructs/project1.go:223
TypeAlias
Goat_States
Project1 protocol buffers
cmp/internal/testprotos/protos.go:38
Struct
Headquarter
cmp/internal/teststructs/project4.go:80
TypeAlias
HoneyStatus
Project4 protocol buffers
cmp/internal/testprotos/protos.go:104
Interface
Iface1
cmp/compare_test.go:199
Interface
Iface2
cmp/compare_test.go:202
Struct
Indirect
Indirect is a [PathStep] that represents pointer indirection on the parent type.
cmp/path.go:279
Interface
InterfaceA
cmp/internal/teststructs/structs.go:7
Struct
LoveRadius
cmp/internal/teststructs/project1.go:247
TypeAlias
M
cmp/compare_test.go:2394
Struct
MapIndex
MapIndex is a [PathStep] that represents an index operation on a map at some index Key.
cmp/path.go:265
Interface
Message
cmp/internal/testprotos/protos.go:14
Struct
MetaData
Project4 protocol buffers
cmp/internal/testprotos/protos.go:106
Struct
MockTable
cmp/internal/teststructs/project3.go:74
TypeAlias
MyByte
cmp/compare_test.go:865
Struct
MyComposite
cmp/compare_test.go:873
TypeAlias
MyFloat
cmp/compare_test.go:871
TypeAlias
MyFloats
cmp/compare_test.go:872
TypeAlias
MyInt
cmp/compare_test.go:867
TypeAlias
MyInts
cmp/compare_test.go:868
TypeAlias
MyInts
cmp/cmpopts/util_test.go:25
TypeAlias
MyString
cmp/cmpopts/util_test.go:27
Struct
MyStruct
cmp/cmpopts/util_test.go:29
Struct
MyStruct
cmp/internal/value/sort_test.go:20
Struct
MyTime
cmp/cmpopts/util_test.go:28
TypeAlias
MyUint
cmp/compare_test.go:869
TypeAlias
MyUints
cmp/compare_test.go:870
Struct
Named
cmp/internal/value/name_test.go:13
Interface
Option
Option configures for specific behavior of [Equal] and [Diff]. In particular, the fundamental Option functions ([Ignore], [Transformer], and [Comparer
cmp/options.go:25
TypeAlias
P
cmp/compare_test.go:2392
Struct
ParentStruct
cmp/cmpopts/util_test.go:53
Struct
ParentStructA
cmp/internal/teststructs/structs.go:134
Struct
ParentStructB
cmp/internal/teststructs/structs.go:135
Struct
ParentStructC
cmp/internal/teststructs/structs.go:136
Struct
ParentStructD
cmp/internal/teststructs/structs.go:140
next →
1–100 of 226, ranked by callers