breto

A status bar written in Go.
Log | Files | Refs | README | LICENSE

commit bdda7652bbcb32180331416619c6f52de2fc7606
parent 761f18d0a47f71777d3cdb01a8907ef9dc4c9bd7
Author: jrswab <jrswab@gmail.com>
Date:   Sat, 25 May 2019 10:25:57 -0400

changed counter to unit16

Diffstat:
Mmain.go | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/main.go b/main.go @@ -10,11 +10,12 @@ import ( func main() { // initial run - i := 0 + var i uint16 = 0 weather := wttr.Local() ramFree := ram.Free() for i < 3700 { + // to add seconds use "Jan 02, 2006 15:04:05" hTime := time.Now().Format("Jan 02, 2006 15:04") // time delayed retrievals: // get weather once per hour @@ -28,11 +29,11 @@ func main() { // store desired items as strings // delete or comment out a line to remove from status bar - cat := []string{"", + cat := []string{"", // do not delete or comment out this line "RAM:", ramFree, "free", "|", weather, "|", hTime, - ""} + ""} // do not delete or comment out this line // concatinate all strings to one line for output status := strings.Join(cat, " ")