parent
0d3cbdac24
commit
325eacbfdb
@ -0,0 +1,19 @@
|
||||
package statusscreen
|
||||
|
||||
import (
|
||||
"github.com/common-nighthawk/go-figure"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Clock is my Clock struct
|
||||
type Clock struct {
|
||||
Config *Config
|
||||
}
|
||||
|
||||
// GetOutput returns a rendered result of this module
|
||||
func (clock *Clock) GetOutput() []string {
|
||||
currentTime := time.Now().Format(clock.Config.Clock.TimeFormat)
|
||||
myFigure := figure.NewFigure(currentTime, "", true)
|
||||
|
||||
return myFigure.Slicify()
|
||||
}
|
Loading…
Reference in new issue