summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-01-01 10:03:21 +0100
committerDimitri Sokolyuk <demon@dim13.org>2018-01-01 10:03:21 +0100
commit224f116df6e581c0c62d0300d47224c14d9510df (patch)
treeec131458599f3c831e847fee34ac50ce10e8c673 /href.go
parent2e61e20da46d10af33a84a18dc2e1b77e43002b3 (diff)
...
Diffstat (limited to 'href.go')
-rw-r--r--href.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/href.go b/href.go
index a4cc5c9..4118f0f 100644
--- a/href.go
+++ b/href.go
@@ -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
-}