mountpoint

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UI

type UI struct {
	// contains filtered or unexported fields
}

func New

func New(ui app.UI) *UI

New creates a new mountpoint for switching app.UI components

func (*UI) Switch

func (c *UI) Switch(el app.UI)

Switch lets you switch the app.UI component with another one. It guarantees that the former component gets dismounted and the new one gets mounted in place of the old one.

func (*UI) UI

func (m *UI) UI() app.UI

UI returns the reference to the current mounted app.UI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL