Type function meaning

Hi,

what’s the following meaning? is this defining a type of function?

type CollectorOption func(*Collector)

Thanks

2 Likes

yes, it defines a type of function

1 Like

The type CollectorOption is the type of functions that accept a pointer to a Collector.

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.