From: Bjørn Erik Pedersen Date: Wed, 23 Mar 2016 08:35:50 +0000 (+0100) Subject: transform: Golint fixes X-Git-Tag: v0.16~186 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=626874b9;p=brevno-suite%2Fhugo transform: Golint fixes --- diff --git a/transform/absurl.go b/transform/absurl.go index 1a98a592..255ac33b 100644 --- a/transform/absurl.go +++ b/transform/absurl.go @@ -13,12 +13,16 @@ package transform -var ar *absURLReplacer = newAbsURLReplacer() +var ar = newAbsURLReplacer() +// AbsURL replaces relative URLs with absolute ones +// in HTML files, using the baseURL setting. var AbsURL = func(ct contentTransformer) { ar.replaceInHTML(ct) } +// AbsURLInXML replaces relative URLs with absolute ones +// in XML files, using the baseURL setting. var AbsURLInXML = func(ct contentTransformer) { ar.replaceInXML(ct) }