1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Delete some commented-out code

This commit is contained in:
Chris Cummer 2018-03-28 19:46:29 -07:00 committed by Chris Cummer
parent 8946e5cf24
commit b424655785
3 changed files with 2 additions and 4 deletions

View File

@ -12,7 +12,6 @@ func Fetch() *owm.CurrentWeatherData {
panic(err)
}
//w.CurrentByName("Toronto,ON")
w.CurrentByID(6173331)
return w

View File

@ -25,7 +25,6 @@ func Widget() tview.Primitive {
widget.SetDynamicColors(true)
widget.SetTitle(fmt.Sprintf(" 🌤 Weather - %s ", data.Name))
//fmt.Fprintf(widget, " %s", data.Name)
var tpl bytes.Buffer
tmpl, _ := template.New("weather").Parse(weatherTemplate)
if err := tmpl.Execute(&tpl, data); err != nil {

4
wtf.go
View File

@ -12,8 +12,8 @@ func main() {
app := tview.NewApplication()
grid := tview.NewGrid()
grid.SetRows(10, 40, 30) // How _high_ the row is, in terminal rows
grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns
grid.SetRows(10, 40, 4) // How _high_ the row is, in terminal rows
grid.SetColumns(40, 40) // How _wide_ the column is, in terminal columns
grid.SetBorder(false)
grid.AddItem(bamboohr.Widget(), 0, 0, 1, 1, 0, 0, false)