Index | Files

package static

import ""

Package static provides a simple module that shows static content on the bar, with methods to set the content. In a pinch, this can be used to create buttons, or show additional information by setting the output from within a format function.


Package Files


type Module Uses

type Module struct {
    // contains filtered or unexported fields

Module represents a module that displays static content on the bar.

func New Uses

func New(initial bar.Output) *Module

New constructs a static module that displays the given output.

func (*Module) Clear Uses

func (m *Module) Clear()

Clear sets an empty output.

func (*Module) Set Uses

func (m *Module) Set(out bar.Output)

Set sets the output to display.

func (*Module) Stream Uses

func (m *Module) Stream(sink bar.Sink)

Stream starts the module.

Package static imports 2 packages (graph). Updated 2018-11-25. Refresh now. Tools for package owners.