How would you explain this type of syntax (casting) in Golang?

后端 未结 0 1514
囚心锁ツ
囚心锁ツ 2020-12-09 01:36

Looking at the source code c.Organizations = (*OrganizationsService)(&c.common) from https://github.com/google/go-github/blob/master/github/github.go#L283,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题