MCPcopy
hub / github.com/betty200744/ultimate-go / FooInterface

Interface FooInterface

main.go:7–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5)
6
7type FooInterface interface {
8 bar() // method receiver is value then interface is value , method receiver is pointer then interface is pointer
9}
10
11//Won't throw a compile error. Because the bar method belongs to Foo struct.
12type Foo1 struct {

Callers

nothing calls this directly

Implementers 4

Foo1main.go
Foo2main.go
Foo1Language_Specification/reference-type/
Foo2Language_Specification/reference-type/

Calls

no outgoing calls

Tested by

no test coverage detected