func (m *Module) Output(outputFunc func(LoadAvg) bar.Output) *Module {
	m.outputFunc.Set(outputFunc)
	return m
}
Output configures a module to display the output of a user-defined function.
package cpuload  
import "C"
import (
	"fmt"
	"time"
	"barista.run/bar"
	"barista.run/base/value"
	l "barista.run/logging"
	"barista.run/outputs"
	"barista.run/timing"
)
type LoadAvg [3]float64
func (l LoadAvg) Min1() float64 {
	return l[0]
}
func (l LoadAvg) Min5() float64 {
	return l[1]
}
func (l LoadAvg) Min15() float64 {
	return l[2]
}
type Module struct {
	scheduler  *timing.Scheduler
	outputFunc value.Value  
}
func New() *Module {
	m := &Module{scheduler: timing.NewScheduler()}
	l.Register(m, "scheduler", "format")
	m.RefreshInterval(3 * time.Second)
	m.Output(func(l LoadAvg) bar.Output {
		return outputs.Textf("%.2f", l.Min1())
	})
	return m
}