breto

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

commit d192927470b6512fb1ff6e5c04f3534b687a4a4c
parent 2054b0742c7064a7499c695e74b74053d9818cca
Author: J. R. Swab <jrswab@protonmail.com>
Date:   Thu, 30 May 2019 01:51:43 +0000

Update comment formatting
Diffstat:
Mlibs/wttr/wttr.go | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libs/wttr/wttr.go b/libs/wttr/wttr.go @@ -17,11 +17,9 @@ func Local(cWttr chan string) { for range ticker.C { passed = time.Since(start).Seconds() // total seconds passed hour = math.Floor(math.Remainder(passed, 3600)) + if passed < 10 || hour == 0 { - // get temp(%t) and wind direction/speed (%w) - // for exact location add postal code - wttr.in/~15222?format... - // for more wttr options see https://wttr.in/:help - resp, err := http.Get("https://wttr.in/?format=%t+%w") + resp, err := http.Get("https://wttr.in/?format=%t+%w") // for more wttr options see https://wttr.in/:help if err != nil { errMessage := "wttr connection issue" cWttr <- errMessage