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:
		
							parent
							
								
									8946e5cf24
								
							
						
					
					
						commit
						b424655785
					
				@ -12,7 +12,6 @@ func Fetch() *owm.CurrentWeatherData {
 | 
				
			|||||||
		panic(err)
 | 
							panic(err)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	//w.CurrentByName("Toronto,ON")
 | 
					 | 
				
			||||||
	w.CurrentByID(6173331)
 | 
						w.CurrentByID(6173331)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return w
 | 
						return w
 | 
				
			||||||
 | 
				
			|||||||
@ -25,7 +25,6 @@ func Widget() tview.Primitive {
 | 
				
			|||||||
	widget.SetDynamicColors(true)
 | 
						widget.SetDynamicColors(true)
 | 
				
			||||||
	widget.SetTitle(fmt.Sprintf(" 🌤 Weather - %s ", data.Name))
 | 
						widget.SetTitle(fmt.Sprintf(" 🌤 Weather - %s ", data.Name))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	//fmt.Fprintf(widget, " %s", data.Name)
 | 
					 | 
				
			||||||
	var tpl bytes.Buffer
 | 
						var tpl bytes.Buffer
 | 
				
			||||||
	tmpl, _ := template.New("weather").Parse(weatherTemplate)
 | 
						tmpl, _ := template.New("weather").Parse(weatherTemplate)
 | 
				
			||||||
	if err := tmpl.Execute(&tpl, data); err != nil {
 | 
						if err := tmpl.Execute(&tpl, data); err != nil {
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								wtf.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								wtf.go
									
									
									
									
									
								
							@ -12,8 +12,8 @@ func main() {
 | 
				
			|||||||
	app := tview.NewApplication()
 | 
						app := tview.NewApplication()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	grid := tview.NewGrid()
 | 
						grid := tview.NewGrid()
 | 
				
			||||||
	grid.SetRows(10, 40, 30) // How _high_ the row is, in terminal rows
 | 
						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.SetColumns(40, 40) // How _wide_ the column is, in terminal columns
 | 
				
			||||||
	grid.SetBorder(false)
 | 
						grid.SetBorder(false)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	grid.AddItem(bamboohr.Widget(), 0, 0, 1, 1, 0, 0, false)
 | 
						grid.AddItem(bamboohr.Widget(), 0, 0, 1, 1, 0, 0, false)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user