diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2018-01-01 10:03:21 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2018-01-01 10:03:21 +0100 |
commit | 224f116df6e581c0c62d0300d47224c14d9510df (patch) | |
tree | ec131458599f3c831e847fee34ac50ce10e8c673 /href.go | |
parent | 2e61e20da46d10af33a84a18dc2e1b77e43002b3 (diff) |
...
Diffstat (limited to 'href.go')
-rw-r--r-- | href.go | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -2,8 +2,6 @@ package main import ( "errors" - "fmt" - "log" "net/http" "strings" @@ -72,22 +70,3 @@ func getLinks(s string) (ret []string) { } return } - -func linker(out chan string) chan string { - c := make(chan string, 1) - go func() { - for l := range c { - for _, v := range getLinks(l) { - log.Println("URL", v) - t, err := getTitle(v) - if err != nil { - log.Println(err) - } - if t != "" { - out <- fmt.Sprintf("Title: %v", t) - } - } - } - }() - return c -} |