I am trying to understand this example.
Is Ccc method of aaa OR bbb or aaa.bbb().
When I go to github, and click on Ccc, I see bunch of Definitions and it’s very inconvenience not knowing where to look.
ans := aaa.Bbb().Ccc()
Real example
https://github.com/CyCoreSystems/ari/blob/master/_examples/play/main.go
sub := cl.Bus().Subscribe(nil, "StasisStart")
>Solution :
I am trying to understand this example. Is Ccc method of aaa OR bbb or aaa.bbb().
Ccc() is a method of whatever type Bbb() returns. This code:
ans := aaa.Bbb().Ccc()
Is the same as this code:
temp := aaa.Bbb()
ans := temp.Ccc()