This question already has an answer here:
What's the purpose of doing this:
var _ ipld.DAGService = (*ComboService)(nil)
Context:
type ComboService struct {
Read ipld.NodeGetter
Write ipld.DAGService
}
var _ ipld.DAGService = (*ComboService)(nil)
// Add writes a new node using the Write DAGService.
func (cs *ComboService) Add(ctx context.Context, nd ipld.Node) error {
return cs.Write.Add(ctx, nd)
}
Is it some kind of type assertion... interface implementation or?
</div>