From e50488b364fb4c7db5c8db77aaa8f4645b99ccf4 Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 3 Oct 2019 20:03:11 -0400 Subject: [PATCH] Rename constant ContentTypeHtml to make private --- default.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.go b/default.go index 63263c8..26cb016 100644 --- a/default.go +++ b/default.go @@ -14,7 +14,7 @@ import ( ) const ( - ContentTypeHtml = "text/html" + contentTypeHtml = "text/html" ) func defaultLinkHandler(link string) (*LinkInfo, error) { @@ -69,7 +69,7 @@ func defaultLinkHandler(link string) (*LinkInfo, error) { } switch contentType { - case ContentTypeHtml: + case contentTypeHtml: err = retrieveHtmlLinkTitle(ret, link) default: ret.Title = fmt.Sprintf("%s (%s, %s)", path.Base(u.Path), contentType, ByteCountDecimal(contentLength))