1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +08:00

Documenting non-public method of container.

This commit is contained in:
Jakub Sobon 2019-02-23 21:25:03 -05:00
parent f0438f5f78
commit be90fe60ea
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7

View File

@ -255,6 +255,8 @@ func (c *Container) mouseToWidget(m *terminalapi.Mouse, scope widgetapi.MouseSco
// Subscribe tells the container to subscribe itself and widgets to the
// provided event distribution system.
// This method is private to termdash, stability isn't guaranteed and changes
// won't be backward compatible.
func (c *Container) Subscribe(eds *event.DistributionSystem) {
c.mu.Lock()
defer c.mu.Unlock()