MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / command2

Function command2

staticchecking/petspeak.go:33–33  ·  view source on GitHub ↗

If "Speaker" is never used anywhere else, it can be anonymous:

(s interface { speak() })

Source from the content-addressed store, hash-verified

31// If "Speaker" is never used
32// anywhere else, it can be anonymous:
33func command2(s interface { speak() }) { s.speak() }
34
35func main() {
36 command(Cat{})

Callers 1

mainFunction · 0.85

Calls 1

speakMethod · 0.65

Tested by

no test coverage detected