forked from sloum/bombadillo
Ran go fmt on a few files
This commit is contained in:
parent
552e211139
commit
231ccc36d3
|
@ -979,7 +979,7 @@ func (c *client) Visit(url string) {
|
||||||
}
|
}
|
||||||
switch strings.ToUpper(c.Options["lynxmode"]) {
|
switch strings.ToUpper(c.Options["lynxmode"]) {
|
||||||
case "TRUE":
|
case "TRUE":
|
||||||
page, err := http.Visit(u.Full, c.Width - 1)
|
page, err := http.Visit(u.Full, c.Width-1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.SetMessage(fmt.Sprintf("Lynx error: %s", err.Error()), true)
|
c.SetMessage(fmt.Sprintf("Lynx error: %s", err.Error()), true)
|
||||||
c.DrawMessage()
|
c.DrawMessage()
|
||||||
|
@ -1057,7 +1057,6 @@ func (c *client) ReloadPage() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------\\
|
//------------------------------------------------\\
|
||||||
// + + + F U N C T I O N S + + + \\
|
// + + + F U N C T I O N S + + + \\
|
||||||
//--------------------------------------------------\\
|
//--------------------------------------------------\\
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
type page struct {
|
type page struct {
|
||||||
Content string
|
Content string
|
||||||
Links []string
|
Links []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func Visit(url string, width int) (page, error) {
|
func Visit(url string, width int) (page, error) {
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
// Bombadillo is an internet client for the terminal of unix or
|
// Bombadillo is an internet client for the terminal of unix or
|
||||||
// unix-like systems.
|
// unix-like systems.
|
||||||
//
|
//
|
||||||
// Copyright (C) 2019 Brian Evans
|
// Copyright (C) 2019 Brian Evans
|
||||||
|
|
Loading…
Reference in New Issue