summaryrefslogtreecommitdiff
path: root/href.go
diff options
context:
space:
mode:
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
-}