From a037c25326bceabc471f679ab2203d99e248ab0e Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 20 Dec 2016 23:18:45 +0100 Subject: maxLen --- href.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'href.go') diff --git a/href.go b/href.go index e1a687b..918a2f2 100644 --- a/href.go +++ b/href.go @@ -13,6 +13,8 @@ import ( var errNotHTML = errors.New("not HTML content") +const maxLen = 500 + func title(n *html.Node) (s string) { if n.Type == html.ElementNode && n.Data == "title" { for c := n.FirstChild; c != nil; c = c.NextSibling { -- cgit v1.2.3