mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Correct spelling of IPInfo in widget title
This commit is contained in:
parent
957873f006
commit
5ce989887f
@ -29,7 +29,7 @@ type ipinfo struct {
|
||||
|
||||
func NewWidget() *Widget {
|
||||
widget := Widget{
|
||||
TextWidget: wtf.NewTextWidget("Ipinfo", "ipinfo", false),
|
||||
TextWidget: wtf.NewTextWidget("IPInfo", "ipinfo", false),
|
||||
}
|
||||
|
||||
widget.View.SetWrap(true)
|
||||
@ -75,7 +75,15 @@ func (widget *Widget) ipinfo() {
|
||||
widget.result = fmt.Sprintf("%s", err.Error())
|
||||
return
|
||||
}
|
||||
widget.result = fmt.Sprintf("[red]IP Address:[white] %s\n[red]Hostname:[white] %v\n[red]City:[white] %s\n[red]Region:[white] %s\n[red]Country:[white] %s\n[red]Coordinates:[white] %v\n[red]Postal Code:[white] %s\n[red]Organization:[white] %v",
|
||||
info.Ip, info.Hostname, info.City, info.Region, info.Country, info.Coordinates, info.PostalCode, info.Organization)
|
||||
|
||||
widget.result = fmt.Sprintf(
|
||||
"[red]IP Address:[white] %s\n[red]Hostname:[white] %v\n[red]City:[white] %s\n[red]Region:[white] %s\n[red]Country:[white] %s\n[red]Coordinates:[white] %v\n[red]Postal Code:[white] %s\n[red]Organization:[white] %v",
|
||||
info.Ip,
|
||||
info.Hostname,
|
||||
info.City,
|
||||
info.Region,
|
||||
info.Country,
|
||||
info.Coordinates,
|
||||
info.PostalCode,
|
||||
info.Organization,
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user